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

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

Issue 8102019: redesign and reimplement proxy config service and tracker, revise proxy ui on cros (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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
11 #include <string> 11 #include <string>
12 12
13 #include "base/basictypes.h" 13 #include "base/basictypes.h"
14 #include "base/logging.h" 14 #include "base/logging.h"
15 #include "chrome/browser/net/preconnect.h" // TODO: remove this. 15 #include "chrome/browser/net/preconnect.h" // TODO: remove this.
16 #include "chrome/common/extensions/extension_constants.h" 16 #include "chrome/common/extensions/extension_constants.h"
17 #include "content/browser/browser_context.h" 17 #include "content/browser/browser_context.h"
18 18
19 namespace base { 19 namespace base {
20 class Time; 20 class Time;
21 } 21 }
22 22
23 namespace chromeos { 23 namespace chromeos {
24 class LibCrosServiceLibraryImpl; 24 class LibCrosServiceLibraryImpl;
25 class ResetDefaultProxyConfigServiceTask; 25 class ResetDefaultProxyConfigServiceTask;
26 } 26 }
27 27
28 #if defined(OS_CHROMEOS)
29 namespace chromeos {
30 class ProxyConfigServiceImpl;
31 }
32 #endif // defined(OS_CHROMEOS)
33
28 namespace fileapi { 34 namespace fileapi {
29 class FileSystemContext; 35 class FileSystemContext;
30 class SandboxedFileSystemContext; 36 class SandboxedFileSystemContext;
31 } 37 }
32 38
33 namespace history { 39 namespace history {
34 class TopSites; 40 class TopSites;
35 class ShortcutsBackend; 41 class ShortcutsBackend;
36 } 42 }
37 43
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
472 478
473 // Creates ChromeOS's EnterpriseExtensionListener. 479 // Creates ChromeOS's EnterpriseExtensionListener.
474 virtual void SetupChromeOSEnterpriseExtensionObserver() = 0; 480 virtual void SetupChromeOSEnterpriseExtensionObserver() = 0;
475 481
476 // Initializes Chrome OS's preferences. 482 // Initializes Chrome OS's preferences.
477 virtual void InitChromeOSPreferences() = 0; 483 virtual void InitChromeOSPreferences() = 0;
478 #endif // defined(OS_CHROMEOS) 484 #endif // defined(OS_CHROMEOS)
479 485
480 // Returns the helper object that provides the proxy configuration service 486 // Returns the helper object that provides the proxy configuration service
481 // access to the the proxy configuration possibly defined by preferences. 487 // access to the the proxy configuration possibly defined by preferences.
488 #if defined(OS_CHROMEOS)
489 virtual chromeos::ProxyConfigServiceImpl* GetProxyConfigTracker() = 0;
490 #else
482 virtual PrefProxyConfigTracker* GetProxyConfigTracker() = 0; 491 virtual PrefProxyConfigTracker* GetProxyConfigTracker() = 0;
492 #endif // defined(OS_CHROMEOS)
483 493
484 // Returns the Predictor object used for dns prefetch. 494 // Returns the Predictor object used for dns prefetch.
485 virtual chrome_browser_net::Predictor* GetNetworkPredictor() = 0; 495 virtual chrome_browser_net::Predictor* GetNetworkPredictor() = 0;
486 496
487 // Deletes all network related data since |time|. It deletes transport 497 // Deletes all network related data since |time|. It deletes transport
488 // security state since |time| and it also delete HttpServerProperties data. 498 // security state since |time| and it also delete HttpServerProperties data.
489 // The implementation is free to run this on a background thread, so when this 499 // The implementation is free to run this on a background thread, so when this
490 // method returns data is not guaranteed to be deleted. 500 // method returns data is not guaranteed to be deleted.
491 virtual void ClearNetworkingHistorySince(base::Time time) = 0; 501 virtual void ClearNetworkingHistorySince(base::Time time) = 0;
492 502
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
564 struct hash<Profile*> { 574 struct hash<Profile*> {
565 std::size_t operator()(Profile* const& p) const { 575 std::size_t operator()(Profile* const& p) const {
566 return reinterpret_cast<std::size_t>(p); 576 return reinterpret_cast<std::size_t>(p);
567 } 577 }
568 }; 578 };
569 579
570 } // namespace __gnu_cxx 580 } // namespace __gnu_cxx
571 #endif 581 #endif
572 582
573 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ 583 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698