Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(461)

Unified Diff: content/browser/webui/url_data_manager_backend.h

Issue 12093012: Clean up of url data manager classes in content: move URLDataSourceImpl to its own file, move all t… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/webui/url_data_manager.cc ('k') | content/browser/webui/url_data_manager_backend.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/webui/url_data_manager_backend.h
===================================================================
--- content/browser/webui/url_data_manager_backend.h (revision 179094)
+++ content/browser/webui/url_data_manager_backend.h (working copy)
@@ -15,34 +15,31 @@
#include "content/browser/webui/url_data_manager.h"
#include "net/url_request/url_request_job_factory.h"
-class ChromeURLDataManagerBackend;
class GURL;
-class URLRequestChromeJob;
namespace base {
class RefCountedMemory;
}
-namespace net {
-class URLRequest;
-class URLRequestJob;
-}
+namespace content {
+class URLDataManagerBackend;
+class URLDataSourceImpl;
+class URLRequestChromeJob;
-// ChromeURLDataManagerBackend is used internally by ChromeURLDataManager on the
-// IO thread. In most cases you can use the API in ChromeURLDataManager and
-// ignore this class. ChromeURLDataManagerBackend is owned by
-// ChromeURLRequestContext.
-class ChromeURLDataManagerBackend : public base::SupportsUserData::Data {
+// URLDataManagerBackend is used internally by ChromeURLDataManager on the IO
+// thread. In most cases you can use the API in ChromeURLDataManager and ignore
+// this class. URLDataManagerBackend is owned by ResourceContext.
+class URLDataManagerBackend : public base::SupportsUserData::Data {
public:
typedef int RequestID;
- ChromeURLDataManagerBackend();
- virtual ~ChromeURLDataManagerBackend();
+ URLDataManagerBackend();
+ virtual ~URLDataManagerBackend();
// Invoked to create the protocol handler for chrome://. |is_incognito| should
// be set for incognito profiles.
static net::URLRequestJobFactory::ProtocolHandler* CreateProtocolHandler(
- ChromeURLDataManagerBackend* backend,
+ URLDataManagerBackend* backend,
bool is_incognito);
// Adds a DataSource to the collection of data sources.
@@ -92,13 +89,15 @@
// The ID we'll use for the next request we receive.
RequestID next_request_id_;
- DISALLOW_COPY_AND_ASSIGN(ChromeURLDataManagerBackend);
+ DISALLOW_COPY_AND_ASSIGN(URLDataManagerBackend);
};
// Creates protocol handler for chrome-devtools://. |is_incognito| should be
// set for incognito profiles.
net::URLRequestJobFactory::ProtocolHandler*
-CreateDevToolsProtocolHandler(ChromeURLDataManagerBackend* backend,
+CreateDevToolsProtocolHandler(URLDataManagerBackend* backend,
bool is_incognito);
+} // namespace content
+
#endif // CONTENT_BROWSER_WEBUI_URL_DATA_MANAGER_BACKEND_H_
« no previous file with comments | « content/browser/webui/url_data_manager.cc ('k') | content/browser/webui/url_data_manager_backend.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698