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

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

Issue 6292017: Extended: Add "system" URLRequestContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Chrome OS compile fix Created 9 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 114
115 explicit ProfileIOData(bool is_off_the_record); 115 explicit ProfileIOData(bool is_off_the_record);
116 virtual ~ProfileIOData(); 116 virtual ~ProfileIOData();
117 117
118 // Static helper functions to assist in common operations executed by 118 // Static helper functions to assist in common operations executed by
119 // subtypes. 119 // subtypes.
120 120
121 static void InitializeProfileParams(Profile* profile, ProfileParams* params); 121 static void InitializeProfileParams(Profile* profile, ProfileParams* params);
122 static void ApplyProfileParamsToContext(const ProfileParams& profile_params, 122 static void ApplyProfileParamsToContext(const ProfileParams& profile_params,
123 ChromeURLRequestContext* context); 123 ChromeURLRequestContext* context);
124 static net::ProxyConfigService* CreateProxyConfigService(Profile* profile);
125 static net::ProxyService* CreateProxyService(
126 net::NetLog* net_log,
127 net::URLRequestContext* context,
128 net::ProxyConfigService* proxy_config_service,
129 const CommandLine& command_line);
130 124
131 // Lazy initializes the ProfileIOData object the first time a request context 125 // Lazy initializes the ProfileIOData object the first time a request context
132 // is requested. The lazy logic is implemented here. The actual initialization 126 // is requested. The lazy logic is implemented here. The actual initialization
133 // is done in LazyInitializeInternal(), implemented by subtypes. Static helper 127 // is done in LazyInitializeInternal(), implemented by subtypes. Static helper
134 // functions have been provided to assist in common operations. 128 // functions have been provided to assist in common operations.
135 void LazyInitialize() const; 129 void LazyInitialize() const;
136 130
137 // -------------------------------------------- 131 // --------------------------------------------
138 // Virtual interface for subtypes to implement: 132 // Virtual interface for subtypes to implement:
139 // -------------------------------------------- 133 // --------------------------------------------
(...skipping 10 matching lines...) Expand all
150 AcquireMediaRequestContext() const = 0; 144 AcquireMediaRequestContext() const = 0;
151 virtual scoped_refptr<ChromeURLRequestContext> 145 virtual scoped_refptr<ChromeURLRequestContext>
152 AcquireExtensionsRequestContext() const = 0; 146 AcquireExtensionsRequestContext() const = 0;
153 147
154 mutable bool initialized_; 148 mutable bool initialized_;
155 149
156 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); 150 DISALLOW_COPY_AND_ASSIGN(ProfileIOData);
157 }; 151 };
158 152
159 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ 153 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698