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

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

Issue 3244002: (2nd try) Add a helper class that keeps per-profile information for FileSystem API (Closed)
Patch Set: Created 10 years, 3 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_tests.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 #pragma once 7 #pragma once
8 8
9 #include "base/ref_counted.h" 9 #include "base/ref_counted.h"
10 #include "base/scoped_ptr.h" 10 #include "base/scoped_ptr.h"
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 return NULL; 149 return NULL;
150 } 150 }
151 virtual PrefService* GetPrefs(); 151 virtual PrefService* GetPrefs();
152 virtual TemplateURLModel* GetTemplateURLModel() { 152 virtual TemplateURLModel* GetTemplateURLModel() {
153 return template_url_model_.get(); 153 return template_url_model_.get();
154 } 154 }
155 virtual TemplateURLFetcher* GetTemplateURLFetcher() { return NULL; } 155 virtual TemplateURLFetcher* GetTemplateURLFetcher() { return NULL; }
156 virtual history::TopSites* GetTopSites(); 156 virtual history::TopSites* GetTopSites();
157 virtual DownloadManager* GetDownloadManager() { return NULL; } 157 virtual DownloadManager* GetDownloadManager() { return NULL; }
158 virtual PersonalDataManager* GetPersonalDataManager() { return NULL; } 158 virtual PersonalDataManager* GetPersonalDataManager() { return NULL; }
159 virtual FileSystemHostContext* GetFileSystemHostContext() { return NULL; }
159 virtual bool HasCreatedDownloadManager() const { return false; } 160 virtual bool HasCreatedDownloadManager() const { return false; }
160 virtual void InitThemes(); 161 virtual void InitThemes();
161 virtual void SetTheme(Extension* extension) {} 162 virtual void SetTheme(Extension* extension) {}
162 virtual void SetNativeTheme() {} 163 virtual void SetNativeTheme() {}
163 virtual void ClearTheme() {} 164 virtual void ClearTheme() {}
164 virtual Extension* GetTheme() { return NULL; } 165 virtual Extension* GetTheme() { return NULL; }
165 virtual BrowserThemeProvider* GetThemeProvider() { 166 virtual BrowserThemeProvider* GetThemeProvider() {
166 InitThemes(); 167 InitThemes();
167 return theme_provider_.get(); 168 return theme_provider_.get();
168 } 169 }
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 357
357 virtual ProfileId GetRuntimeId() { 358 virtual ProfileId GetRuntimeId() {
358 return original_profile_->GetRuntimeId(); 359 return original_profile_->GetRuntimeId();
359 } 360 }
360 361
361 protected: 362 protected:
362 Profile* original_profile_; 363 Profile* original_profile_;
363 }; 364 };
364 365
365 #endif // CHROME_TEST_TESTING_PROFILE_H_ 366 #endif // CHROME_TEST_TESTING_PROFILE_H_
OLDNEW
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698