Rename WebDataSource to WebDocumentLoader
WebDataSource is an interface to expose DocumentLoader to outside of
Blink together with ExtraData. Naming this class WebDocumentLoader makes
it easier to understand correspondence between this interface and
DocumentLoader.
This patch also
- adds Get.* prefix to the getters using this opportunity.
- just removes unused includes and forward declarations from some files
Bug:
Change-Id: I6c9c0e49b4eeac94cae349439f85c3163d35f04a
Reviewed-on: https://chromium-review.googlesource.com/590840
Commit-Queue: Takeshi Yoshino <[email protected]>
Reviewed-by: Kinuko Yasuda <[email protected]>
Reviewed-by: Jochen Eisinger <[email protected]>
Reviewed-by: Nate Chapin <[email protected]>
Cr-Commit-Position: refs/heads/master@{#490948}
diff --git a/content/renderer/internal_document_state_data.h b/content/renderer/internal_document_state_data.h
index dc66fcfc..3f78f00 100644
--- a/content/renderer/internal_document_state_data.h
+++ b/content/renderer/internal_document_state_data.h
@@ -14,20 +14,21 @@
#include "url/gurl.h"
namespace blink {
-class WebDataSource;
+class WebDocumentLoader;
}
namespace content {
class DocumentState;
-// Stores internal state per WebDataSource.
+// Stores internal state per WebDocumentLoader.
class InternalDocumentStateData : public base::SupportsUserData::Data {
public:
InternalDocumentStateData();
~InternalDocumentStateData() override;
- static InternalDocumentStateData* FromDataSource(blink::WebDataSource* ds);
+ static InternalDocumentStateData* FromDocumentLoader(
+ blink::WebDocumentLoader* document_loader);
static InternalDocumentStateData* FromDocumentState(DocumentState* ds);
int http_status_code() const { return http_status_code_; }