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

Side by Side Diff: chrome/test/testing_profile.h

Issue 2858032: Display content settings applying to the current otr session only. (Closed)
Patch Set: updates Created 10 years, 5 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
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | no next file » | 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 #ifndef CHROME_TEST_TESTING_PROFILE_H_ 5 #ifndef CHROME_TEST_TESTING_PROFILE_H_
6 #define CHROME_TEST_TESTING_PROFILE_H_ 6 #define CHROME_TEST_TESTING_PROFILE_H_
7 7
8 #include "base/base_paths.h" 8 #include "base/base_paths.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/path_service.h" 10 #include "base/path_service.h"
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 } 93 }
94 // Sets whether we're off the record. Default is false. 94 // Sets whether we're off the record. Default is false.
95 void set_off_the_record(bool off_the_record) { 95 void set_off_the_record(bool off_the_record) {
96 off_the_record_ = off_the_record; 96 off_the_record_ = off_the_record;
97 } 97 }
98 virtual bool IsOffTheRecord() { return off_the_record_; } 98 virtual bool IsOffTheRecord() { return off_the_record_; }
99 virtual Profile* GetOffTheRecordProfile() { return NULL; } 99 virtual Profile* GetOffTheRecordProfile() { return NULL; }
100 100
101 virtual void DestroyOffTheRecordProfile() {} 101 virtual void DestroyOffTheRecordProfile() {}
102 102
103 virtual bool HasOffTheRecordProfile() { return false; }
104
103 virtual Profile* GetOriginalProfile() { return this; } 105 virtual Profile* GetOriginalProfile() { return this; }
104 virtual webkit_database::DatabaseTracker* GetDatabaseTracker(); 106 virtual webkit_database::DatabaseTracker* GetDatabaseTracker();
105 virtual VisitedLinkMaster* GetVisitedLinkMaster() { return NULL; } 107 virtual VisitedLinkMaster* GetVisitedLinkMaster() { return NULL; }
106 virtual ExtensionsService* GetExtensionsService() { return NULL; } 108 virtual ExtensionsService* GetExtensionsService() { return NULL; }
107 virtual UserScriptMaster* GetUserScriptMaster() { return NULL; } 109 virtual UserScriptMaster* GetUserScriptMaster() { return NULL; }
108 virtual ExtensionDevToolsManager* GetExtensionDevToolsManager() { 110 virtual ExtensionDevToolsManager* GetExtensionDevToolsManager() {
109 return NULL; 111 return NULL;
110 } 112 }
111 virtual ExtensionProcessManager* GetExtensionProcessManager() { return NULL; } 113 virtual ExtensionProcessManager* GetExtensionProcessManager() { return NULL; }
112 virtual ExtensionMessageService* GetExtensionMessageService() { return NULL; } 114 virtual ExtensionMessageService* GetExtensionMessageService() { return NULL; }
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 381
380 virtual ProfileId GetRuntimeId() { 382 virtual ProfileId GetRuntimeId() {
381 return original_profile_->GetRuntimeId(); 383 return original_profile_->GetRuntimeId();
382 } 384 }
383 385
384 protected: 386 protected:
385 Profile* original_profile_; 387 Profile* original_profile_;
386 }; 388 };
387 389
388 #endif // CHROME_TEST_TESTING_PROFILE_H_ 390 #endif // CHROME_TEST_TESTING_PROFILE_H_
OLDNEW
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698