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

Side by Side Diff: content/browser/webui/url_data_manager_backend.h

Issue 1575763002: Make `content` target build without unused data members on Linux. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@use_disallow_copy_assign_linux_only
Patch Set: fix unit test Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_WEBUI_URL_DATA_MANAGER_BACKEND_H_ 5 #ifndef CONTENT_BROWSER_WEBUI_URL_DATA_MANAGER_BACKEND_H_
6 #define CONTENT_BROWSER_WEBUI_URL_DATA_MANAGER_BACKEND_H_ 6 #define CONTENT_BROWSER_WEBUI_URL_DATA_MANAGER_BACKEND_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "base/supports_user_data.h" 15 #include "base/supports_user_data.h"
16 #include "content/browser/webui/url_data_manager.h" 16 #include "content/browser/webui/url_data_manager.h"
17 #include "content/public/browser/url_data_source.h" 17 #include "content/public/browser/url_data_source.h"
18 #include "net/url_request/url_request_job_factory.h" 18 #include "net/url_request/url_request_job_factory.h"
19 19
20 class GURL; 20 class GURL;
21 21
22 namespace base { 22 namespace base {
23 class RefCountedMemory; 23 class RefCountedMemory;
24 } 24 }
25 25
26 namespace content { 26 namespace content {
27 27
28 class AppCacheServiceImpl;
29 class ChromeBlobStorageContext; 28 class ChromeBlobStorageContext;
30 class ResourceContext; 29 class ResourceContext;
31 class URLDataManagerBackend; 30 class URLDataManagerBackend;
32 class URLDataSourceImpl; 31 class URLDataSourceImpl;
33 class URLRequestChromeJob; 32 class URLRequestChromeJob;
34 33
35 // URLDataManagerBackend is used internally by ChromeURLDataManager on the IO 34 // URLDataManagerBackend is used internally by ChromeURLDataManager on the IO
36 // thread. In most cases you can use the API in ChromeURLDataManager and ignore 35 // thread. In most cases you can use the API in ChromeURLDataManager and ignore
37 // this class. URLDataManagerBackend is owned by ResourceContext. 36 // this class. URLDataManagerBackend is owned by ResourceContext.
38 class URLDataManagerBackend : public base::SupportsUserData::Data { 37 class URLDataManagerBackend : public base::SupportsUserData::Data {
39 public: 38 public:
40 typedef int RequestID; 39 typedef int RequestID;
41 40
42 URLDataManagerBackend(); 41 URLDataManagerBackend();
43 ~URLDataManagerBackend() override; 42 ~URLDataManagerBackend() override;
44 43
45 // Invoked to create the protocol handler for chrome://. |is_incognito| should 44 // Invoked to create the protocol handler for chrome://. |is_incognito| should
46 // be set for incognito profiles. Called on the UI thread. 45 // be set for incognito profiles. Called on the UI thread.
47 CONTENT_EXPORT static scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> 46 CONTENT_EXPORT static scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
48 CreateProtocolHandler(content::ResourceContext* resource_context, 47 CreateProtocolHandler(content::ResourceContext* resource_context,
49 bool is_incognito, 48 bool is_incognito,
50 AppCacheServiceImpl* appcache_service,
51 ChromeBlobStorageContext* blob_storage_context); 49 ChromeBlobStorageContext* blob_storage_context);
52 50
53 // Adds a DataSource to the collection of data sources. 51 // Adds a DataSource to the collection of data sources.
54 void AddDataSource(URLDataSourceImpl* source); 52 void AddDataSource(URLDataSourceImpl* source);
55 53
56 // DataSource invokes this. Sends the data to the URLRequest. 54 // DataSource invokes this. Sends the data to the URLRequest.
57 void DataAvailable(RequestID request_id, base::RefCountedMemory* bytes); 55 void DataAvailable(RequestID request_id, base::RefCountedMemory* bytes);
58 56
59 static net::URLRequestJob* Factory(net::URLRequest* request, 57 static net::URLRequestJob* Factory(net::URLRequest* request,
60 const std::string& scheme); 58 const std::string& scheme);
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 105
108 // Creates protocol handler for chrome-devtools://. |is_incognito| should be 106 // Creates protocol handler for chrome-devtools://. |is_incognito| should be
109 // set for incognito profiles. 107 // set for incognito profiles.
110 net::URLRequestJobFactory::ProtocolHandler* 108 net::URLRequestJobFactory::ProtocolHandler*
111 CreateDevToolsProtocolHandler(content::ResourceContext* resource_context, 109 CreateDevToolsProtocolHandler(content::ResourceContext* resource_context,
112 bool is_incognito); 110 bool is_incognito);
113 111
114 } // namespace content 112 } // namespace content
115 113
116 #endif // CONTENT_BROWSER_WEBUI_URL_DATA_MANAGER_BACKEND_H_ 114 #endif // CONTENT_BROWSER_WEBUI_URL_DATA_MANAGER_BACKEND_H_
OLDNEW
« no previous file with comments | « content/browser/storage_partition_impl_map.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