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

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

Issue 3047052: chromeos: 1st draft of ProxyConfigService for chromeos... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 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/net/chrome_url_request_context.cc ('k') | chrome/browser/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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_PROFILE_H_ 7 #ifndef CHROME_BROWSER_PROFILE_H_
8 #define CHROME_BROWSER_PROFILE_H_ 8 #define CHROME_BROWSER_PROFILE_H_
9 #pragma once 9 #pragma once
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 13
14 namespace base { 14 namespace base {
15 class Time; 15 class Time;
16 } 16 }
17
18 #if defined(OS_CHROMEOS)
19 namespace chromeos {
20 class ProxyConfigServiceImpl;
21 }
22 #endif
23
17 namespace history { 24 namespace history {
18 class TopSites; 25 class TopSites;
19 } 26 }
20 27
21 namespace net { 28 namespace net {
22 class TransportSecurityState; 29 class TransportSecurityState;
23 class SSLConfigService; 30 class SSLConfigService;
24 } 31 }
25 32
26 namespace webkit_database { 33 namespace webkit_database {
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 422
416 virtual void InitExtensions() = 0; 423 virtual void InitExtensions() = 0;
417 424
418 // Returns the new tab page resource cache. 425 // Returns the new tab page resource cache.
419 virtual NTPResourceCache* GetNTPResourceCache() = 0; 426 virtual NTPResourceCache* GetNTPResourceCache() = 0;
420 427
421 // Returns the last directory that was chosen for uploading or opening a file. 428 // Returns the last directory that was chosen for uploading or opening a file.
422 virtual FilePath last_selected_directory() = 0; 429 virtual FilePath last_selected_directory() = 0;
423 virtual void set_last_selected_directory(const FilePath& path) = 0; 430 virtual void set_last_selected_directory(const FilePath& path) = 0;
424 431
432 #if defined(OS_CHROMEOS)
433 // Returns ChromeOS's ProxyConfigServiceImpl, creating if not yet created.
434 virtual chromeos::ProxyConfigServiceImpl*
435 GetChromeOSProxyConfigServiceImpl() = 0;
436 #endif // defined(OS_CHROMEOS)
437
425 #ifdef UNIT_TEST 438 #ifdef UNIT_TEST
426 // Use with caution. GetDefaultRequestContext may be called on any thread! 439 // Use with caution. GetDefaultRequestContext may be called on any thread!
427 static void set_default_request_context(URLRequestContextGetter* c) { 440 static void set_default_request_context(URLRequestContextGetter* c) {
428 default_request_context_ = c; 441 default_request_context_ = c;
429 } 442 }
430 #endif 443 #endif
431 444
432 // Did the user restore the last session? This is set by SessionRestore. 445 // Did the user restore the last session? This is set by SessionRestore.
433 void set_restored_last_session(bool restored_last_session) { 446 void set_restored_last_session(bool restored_last_session) {
434 restored_last_session_ = restored_last_session; 447 restored_last_session_ = restored_last_session;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 bool restored_last_session_; 480 bool restored_last_session_;
468 481
469 // Accessibility events will only be propagated when the pause 482 // Accessibility events will only be propagated when the pause
470 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents 483 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents
471 // increment and decrement the level, respectively, rather than set it to 484 // increment and decrement the level, respectively, rather than set it to
472 // true or false, so that calls can be nested. 485 // true or false, so that calls can be nested.
473 int accessibility_pause_level_; 486 int accessibility_pause_level_;
474 }; 487 };
475 488
476 #endif // CHROME_BROWSER_PROFILE_H_ 489 #endif // CHROME_BROWSER_PROFILE_H_
OLDNEW
« no previous file with comments | « chrome/browser/net/chrome_url_request_context.cc ('k') | chrome/browser/profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698