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

Unified Diff: chrome/browser/profiles/profile_io_data.h

Issue 182993003: Add the ability for DevTools to wrap network transactions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/profiles/profile_impl_io_data.cc ('k') | chrome/browser/profiles/profile_io_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_io_data.h
diff --git a/chrome/browser/profiles/profile_io_data.h b/chrome/browser/profiles/profile_io_data.h
index 815dbe9cb3d1fcdecbb96343b83d7d450a4862fb..2852481429cbf6cf26d929a59a4dd63510679a6c 100644
--- a/chrome/browser/profiles/profile_io_data.h
+++ b/chrome/browser/profiles/profile_io_data.h
@@ -24,12 +24,14 @@
#include "content/public/browser/content_browser_client.h"
#include "content/public/browser/resource_context.h"
#include "net/cookies/cookie_monster.h"
+#include "net/http/http_cache.h"
#include "net/http/http_network_session.h"
#include "net/url_request/url_request_job_factory.h"
class ChromeHttpUserAgentSettings;
class ChromeNetworkDelegate;
class CookieSettings;
+class DevToolsNetworkController;
class HostContentSettingsMap;
class ManagedModeURLFilter;
class MediaDeviceIDSalt;
@@ -184,6 +186,10 @@ class ProfileIOData {
content::ResourceContext::SaltCallback GetMediaDeviceIDSalt() const;
+ DevToolsNetworkController* network_controller() const {
+ return network_controller_.get();
+ }
+
net::TransportSecurityState* transport_security_state() const {
return transport_security_state_.get();
}
@@ -362,11 +368,15 @@ class ProfileIOData {
// URLRequests may be accessing.
void DestroyResourceContext();
- // Fills in fields of params using values from main_request_context_ and the
- // IOThread associated with profile_params.
- void PopulateNetworkSessionParams(
+ // Creates network session and main network transaction factory.
+ scoped_ptr<net::HttpCache> CreateMainHttpFactory(
const ProfileParams* profile_params,
- net::HttpNetworkSession::Params* params) const;
+ net::HttpCache::BackendFactory* main_backend) const;
+
+ // Creates network transaction factory.
+ scoped_ptr<net::HttpCache> CreateHttpFactory(
+ net::HttpNetworkSession* shared_session,
+ net::HttpCache::BackendFactory* backend) const;
void SetCookieSettingsForTesting(CookieSettings* cookie_settings);
@@ -567,6 +577,8 @@ class ProfileIOData {
mutable scoped_refptr<const ManagedModeURLFilter> managed_mode_url_filter_;
#endif
+ mutable scoped_ptr<DevToolsNetworkController> network_controller_;
+
// TODO(jhawkins): Remove once crbug.com/102004 is fixed.
bool initialized_on_UI_thread_;
« no previous file with comments | « chrome/browser/profiles/profile_impl_io_data.cc ('k') | chrome/browser/profiles/profile_io_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698