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

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

Issue 6880089: Don't hold the installed app in BrowserProcessRenderHost, since that's in content layer now. Ext... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 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 // This class gathers state related to a single user profile. 5 // This class gathers state related to a single user profile.
6 6
7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_H_ 7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_H_
8 #define CHROME_BROWSER_PROFILES_PROFILE_H_ 8 #define CHROME_BROWSER_PROFILES_PROFILE_H_
9 #pragma once 9 #pragma once
10 10
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 virtual fileapi::FileSystemContext* GetFileSystemContext() = 0; 326 virtual fileapi::FileSystemContext* GetFileSystemContext() = 0;
327 327
328 // Returns the BrowserSignin object assigned to this profile. 328 // Returns the BrowserSignin object assigned to this profile.
329 virtual BrowserSignin* GetBrowserSignin() = 0; 329 virtual BrowserSignin* GetBrowserSignin() = 0;
330 330
331 // Returns the request context information associated with this profile. Call 331 // Returns the request context information associated with this profile. Call
332 // this only on the UI thread, since it can send notifications that should 332 // this only on the UI thread, since it can send notifications that should
333 // happen on the UI thread. 333 // happen on the UI thread.
334 virtual net::URLRequestContextGetter* GetRequestContext() = 0; 334 virtual net::URLRequestContextGetter* GetRequestContext() = 0;
335 335
336 // Returns the request context appropriate for the given app. If installed_app 336 // Returns the request context appropriate for the given app. If the renderer
Charlie Reis 2011/04/21 00:25:12 "for the given app" -> "for the given renderer pro
jam 2011/04/21 06:52:19 Done
337 // is null or installed_app->is_storage_isolated() returns false, this is 337 // process doesn't have an assosicated installed app, or if the installed
338 // equivalent to calling GetRequestContext(). 338 // app's is_storage_isolated() returns false, this is equivalent to calling
339 // GetRequestContext().
339 // TODO(creis): After isolated app storage is no longer an experimental 340 // TODO(creis): After isolated app storage is no longer an experimental
340 // feature, consider making this the default contract for GetRequestContext. 341 // feature, consider making this the default contract for GetRequestContext.
341 virtual net::URLRequestContextGetter* GetRequestContextForPossibleApp( 342 virtual net::URLRequestContextGetter* GetRequestContextForPossibleApp(
342 const Extension* installed_app) = 0; 343 int renderer_child_id) = 0;
343 344
344 // Returns the request context for media resources asociated with this 345 // Returns the request context for media resources asociated with this
345 // profile. 346 // profile.
346 virtual net::URLRequestContextGetter* GetRequestContextForMedia() = 0; 347 virtual net::URLRequestContextGetter* GetRequestContextForMedia() = 0;
347 348
348 // Returns the request context used for extension-related requests. This 349 // Returns the request context used for extension-related requests. This
349 // is only used for a separate cookie store currently. 350 // is only used for a separate cookie store currently.
350 virtual net::URLRequestContextGetter* GetRequestContextForExtensions() = 0; 351 virtual net::URLRequestContextGetter* GetRequestContextForExtensions() = 0;
351 352
352 // Returns the request context used within an installed app that has 353 // Returns the request context used within an installed app that has
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
594 bool restored_last_session_; 595 bool restored_last_session_;
595 596
596 // Accessibility events will only be propagated when the pause 597 // Accessibility events will only be propagated when the pause
597 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents 598 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents
598 // increment and decrement the level, respectively, rather than set it to 599 // increment and decrement the level, respectively, rather than set it to
599 // true or false, so that calls can be nested. 600 // true or false, so that calls can be nested.
600 int accessibility_pause_level_; 601 int accessibility_pause_level_;
601 }; 602 };
602 603
603 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ 604 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698