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

Side by Side Diff: chrome/browser/profiles/profile_io_data.h

Issue 1692503002: Functionality to allow blacklist and whitelist of custom schemes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed compile error Created 4 years, 7 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 CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ 5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_
6 #define CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ 6 #define CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
11 #include <memory> 11 #include <memory>
12 #include <string> 12 #include <string>
13 #include <vector> 13 #include <vector>
14 14
15 #include "base/callback_forward.h" 15 #include "base/callback_forward.h"
16 #include "base/files/file_path.h" 16 #include "base/files/file_path.h"
17 #include "base/macros.h" 17 #include "base/macros.h"
18 #include "base/memory/ref_counted.h" 18 #include "base/memory/ref_counted.h"
19 #include "base/memory/weak_ptr.h" 19 #include "base/memory/weak_ptr.h"
20 #include "base/synchronization/lock.h" 20 #include "base/synchronization/lock.h"
21 #include "build/build_config.h" 21 #include "build/build_config.h"
22 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" 22 #include "chrome/browser/custom_handlers/protocol_handler_registry.h"
23 #include "chrome/browser/devtools/devtools_network_controller_handle.h" 23 #include "chrome/browser/devtools/devtools_network_controller_handle.h"
24 #include "chrome/browser/io_thread.h" 24 #include "chrome/browser/io_thread.h"
25 #include "chrome/browser/profiles/profile.h" 25 #include "chrome/browser/profiles/profile.h"
26 #include "chrome/browser/profiles/storage_partition_descriptor.h" 26 #include "chrome/browser/profiles/storage_partition_descriptor.h"
27 #include "components/content_settings/core/common/content_settings_types.h" 27 #include "components/content_settings/core/common/content_settings_types.h"
28 #include "components/policy/core/browser/url_blacklist_manager.h"
28 #include "components/prefs/pref_member.h" 29 #include "components/prefs/pref_member.h"
29 #include "content/public/browser/content_browser_client.h" 30 #include "content/public/browser/content_browser_client.h"
30 #include "content/public/browser/resource_context.h" 31 #include "content/public/browser/resource_context.h"
31 #include "net/cert/ct_verifier.h" 32 #include "net/cert/ct_verifier.h"
32 #include "net/cookies/cookie_monster.h" 33 #include "net/cookies/cookie_monster.h"
33 #include "net/http/http_cache.h" 34 #include "net/http/http_cache.h"
34 #include "net/http/http_network_session.h" 35 #include "net/http/http_network_session.h"
35 #include "net/url_request/url_request_context.h" 36 #include "net/url_request/url_request_context.h"
36 #include "net/url_request/url_request_interceptor.h" 37 #include "net/url_request/url_request_interceptor.h"
37 #include "net/url_request/url_request_job_factory.h" 38 #include "net/url_request/url_request_job_factory.h"
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 client_cert_store_factory_ = factory; 238 client_cert_store_factory_ = factory;
238 } 239 }
239 240
240 bool IsDataReductionProxyEnabled() const; 241 bool IsDataReductionProxyEnabled() const;
241 242
242 data_reduction_proxy::DataReductionProxyIOData* 243 data_reduction_proxy::DataReductionProxyIOData*
243 data_reduction_proxy_io_data() const { 244 data_reduction_proxy_io_data() const {
244 return data_reduction_proxy_io_data_.get(); 245 return data_reduction_proxy_io_data_.get();
245 } 246 }
246 247
248 // This function is to be used to check if the |url| is defined in
249 // blacklist or whitelist policy.
250 virtual policy::URLBlacklist::URLBlacklistState GetURLBlacklistState(
251 const GURL& url) const;
252
247 protected: 253 protected:
248 // A URLRequestContext for media that owns its HTTP factory, to ensure 254 // A URLRequestContext for media that owns its HTTP factory, to ensure
249 // it is deleted. 255 // it is deleted.
250 class MediaRequestContext : public net::URLRequestContext { 256 class MediaRequestContext : public net::URLRequestContext {
251 public: 257 public:
252 MediaRequestContext(); 258 MediaRequestContext();
253 259
254 void SetHttpTransactionFactory( 260 void SetHttpTransactionFactory(
255 std::unique_ptr<net::HttpTransactionFactory> http_factory); 261 std::unique_ptr<net::HttpTransactionFactory> http_factory);
256 262
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
601 607
602 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. 608 // TODO(jhawkins): Remove once crbug.com/102004 is fixed.
603 bool initialized_on_UI_thread_; 609 bool initialized_on_UI_thread_;
604 610
605 const Profile::ProfileType profile_type_; 611 const Profile::ProfileType profile_type_;
606 612
607 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); 613 DISALLOW_COPY_AND_ASSIGN(ProfileIOData);
608 }; 614 };
609 615
610 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ 616 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698