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

Side by Side Diff: chrome/browser/net/chrome_url_request_context.h

Issue 6201005: Initial support for partitioning cookies for isolated apps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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 | 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_NET_CHROME_URL_REQUEST_CONTEXT_H_ 5 #ifndef CHROME_BROWSER_NET_CHROME_URL_REQUEST_CONTEXT_H_
6 #define CHROME_BROWSER_NET_CHROME_URL_REQUEST_CONTEXT_H_ 6 #define CHROME_BROWSER_NET_CHROME_URL_REQUEST_CONTEXT_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 // get called on UI thread. This method takes a profile and reuses the 238 // get called on UI thread. This method takes a profile and reuses the
239 // 'original' URLRequestContext for common files. 239 // 'original' URLRequestContext for common files.
240 static ChromeURLRequestContextGetter* CreateOriginalForMedia( 240 static ChromeURLRequestContextGetter* CreateOriginalForMedia(
241 Profile* profile, const FilePath& disk_cache_path, int cache_size); 241 Profile* profile, const FilePath& disk_cache_path, int cache_size);
242 242
243 // Create an instance for an original profile for extensions. This is expected 243 // Create an instance for an original profile for extensions. This is expected
244 // to get called on UI thread. 244 // to get called on UI thread.
245 static ChromeURLRequestContextGetter* CreateOriginalForExtensions( 245 static ChromeURLRequestContextGetter* CreateOriginalForExtensions(
246 Profile* profile, const FilePath& cookie_store_path); 246 Profile* profile, const FilePath& cookie_store_path);
247 247
248 // Create an instance for an original profile for an app with isolated
249 // storage. This is expected to get called on UI thread.
250 static ChromeURLRequestContextGetter* CreateOriginalForIsolatedApp(
251 Profile* profile, const Extension* app,
252 const FilePath& cookie_store_path);
253
248 // Create an instance for use with an OTR profile. This is expected to get 254 // Create an instance for use with an OTR profile. This is expected to get
249 // called on the UI thread. 255 // called on the UI thread.
250 static ChromeURLRequestContextGetter* CreateOffTheRecord(Profile* profile); 256 static ChromeURLRequestContextGetter* CreateOffTheRecord(Profile* profile);
251 257
252 // Create an instance for an OTR profile for extensions. This is expected 258 // Create an instance for an OTR profile for extensions. This is expected
253 // to get called on UI thread. 259 // to get called on UI thread.
254 static ChromeURLRequestContextGetter* CreateOffTheRecordForExtensions( 260 static ChromeURLRequestContextGetter* CreateOffTheRecordForExtensions(
255 Profile* profile); 261 Profile* profile);
256 262
263 // Create an instance for an OTR profile for an app with isolated storage.
264 // This is expected to get called on UI thread.
265 static ChromeURLRequestContextGetter* CreateOffTheRecordForIsolatedApp(
266 Profile* profile, const Extension* app);
267
257 // Clean up UI thread resources. This is expected to get called on the UI 268 // Clean up UI thread resources. This is expected to get called on the UI
258 // thread before the instance is deleted on the IO thread. 269 // thread before the instance is deleted on the IO thread.
259 void CleanupOnUIThread(); 270 void CleanupOnUIThread();
260 271
261 // NotificationObserver implementation. 272 // NotificationObserver implementation.
262 virtual void Observe(NotificationType type, 273 virtual void Observe(NotificationType type,
263 const NotificationSource& source, 274 const NotificationSource& source,
264 const NotificationDetails& details); 275 const NotificationDetails& details);
265 276
266 private: 277 private:
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 367
357 FilePath profile_dir_path_; 368 FilePath profile_dir_path_;
358 369
359 private: 370 private:
360 IOThread* const io_thread_; 371 IOThread* const io_thread_;
361 372
362 DISALLOW_COPY_AND_ASSIGN(ChromeURLRequestContextFactory); 373 DISALLOW_COPY_AND_ASSIGN(ChromeURLRequestContextFactory);
363 }; 374 };
364 375
365 #endif // CHROME_BROWSER_NET_CHROME_URL_REQUEST_CONTEXT_H_ 376 #endif // CHROME_BROWSER_NET_CHROME_URL_REQUEST_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698