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

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

Issue 6542003: Refactor WebResourceService class, making it more generic. Move all the prom... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: For the records Created 9 years, 10 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
« no previous file with comments | « chrome/browser/dom_ui/tips_handler.cc ('k') | chrome/browser/profiles/profile.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 class TemplateURLModel; 95 class TemplateURLModel;
96 class TokenService; 96 class TokenService;
97 class TransportSecurityPersister; 97 class TransportSecurityPersister;
98 class URLRequestContextGetter; 98 class URLRequestContextGetter;
99 class UserScriptMaster; 99 class UserScriptMaster;
100 class UserStyleSheetWatcher; 100 class UserStyleSheetWatcher;
101 class VisitedLinkEventListener; 101 class VisitedLinkEventListener;
102 class VisitedLinkMaster; 102 class VisitedLinkMaster;
103 class WebDataService; 103 class WebDataService;
104 class WebKitContext; 104 class WebKitContext;
105 class WebResourceService; 105 class PromoResourceService;
106 106
107 typedef intptr_t ProfileId; 107 typedef intptr_t ProfileId;
108 108
109 class Profile { 109 class Profile {
110 public: 110 public:
111 // Profile services are accessed with the following parameter. This parameter 111 // Profile services are accessed with the following parameter. This parameter
112 // defines what the caller plans to do with the service. 112 // defines what the caller plans to do with the service.
113 // The caller is responsible for not performing any operation that would 113 // The caller is responsible for not performing any operation that would
114 // result in persistent implicit records while using an OffTheRecord profile. 114 // result in persistent implicit records while using an OffTheRecord profile.
115 // This flag allows the profile to perform an additional check. 115 // This flag allows the profile to perform an additional check.
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 virtual StatusTray* GetStatusTray() = 0; 467 virtual StatusTray* GetStatusTray() = 0;
468 468
469 // Marks the profile as cleanly shutdown. 469 // Marks the profile as cleanly shutdown.
470 // 470 //
471 // NOTE: this is invoked internally on a normal shutdown, but is public so 471 // NOTE: this is invoked internally on a normal shutdown, but is public so
472 // that it can be invoked when the user logs out/powers down (WM_ENDSESSION). 472 // that it can be invoked when the user logs out/powers down (WM_ENDSESSION).
473 virtual void MarkAsCleanShutdown() = 0; 473 virtual void MarkAsCleanShutdown() = 0;
474 474
475 virtual void InitExtensions() = 0; 475 virtual void InitExtensions() = 0;
476 476
477 // Start up service that gathers data from a web resource feed. 477 // Start up service that gathers data from a promo resource feed.
478 virtual void InitWebResources() = 0; 478 virtual void InitPromoResources() = 0;
479 479
480 // Returns the new tab page resource cache. 480 // Returns the new tab page resource cache.
481 virtual NTPResourceCache* GetNTPResourceCache() = 0; 481 virtual NTPResourceCache* GetNTPResourceCache() = 0;
482 482
483 // Returns the last directory that was chosen for uploading or opening a file. 483 // Returns the last directory that was chosen for uploading or opening a file.
484 virtual FilePath last_selected_directory() = 0; 484 virtual FilePath last_selected_directory() = 0;
485 virtual void set_last_selected_directory(const FilePath& path) = 0; 485 virtual void set_last_selected_directory(const FilePath& path) = 0;
486 486
487 // Returns a pointer to the ChromeBlobStorageContext instance for this 487 // Returns a pointer to the ChromeBlobStorageContext instance for this
488 // profile. 488 // profile.
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
583 bool restored_last_session_; 583 bool restored_last_session_;
584 584
585 // Accessibility events will only be propagated when the pause 585 // Accessibility events will only be propagated when the pause
586 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents 586 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents
587 // increment and decrement the level, respectively, rather than set it to 587 // increment and decrement the level, respectively, rather than set it to
588 // true or false, so that calls can be nested. 588 // true or false, so that calls can be nested.
589 int accessibility_pause_level_; 589 int accessibility_pause_level_;
590 }; 590 };
591 591
592 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ 592 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_
OLDNEW
« no previous file with comments | « chrome/browser/dom_ui/tips_handler.cc ('k') | chrome/browser/profiles/profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698