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

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

Issue 7357: Makes the following changes to the bookmark bar context menu:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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/path_service.h" 9 #include "base/path_service.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 // Blocks until the BookmarkModel finishes loaded. This is NOT invoked from 43 // Blocks until the BookmarkModel finishes loaded. This is NOT invoked from
44 // CreateBookmarkModel. 44 // CreateBookmarkModel.
45 void BlockUntilBookmarkModelLoaded(); 45 void BlockUntilBookmarkModelLoaded();
46 46
47 // Creates a TemplateURLModel. If not invoked the TemplateURLModel is NULL. 47 // Creates a TemplateURLModel. If not invoked the TemplateURLModel is NULL.
48 void CreateTemplateURLModel(); 48 void CreateTemplateURLModel();
49 49
50 virtual std::wstring GetPath() { 50 virtual std::wstring GetPath() {
51 return path_; 51 return path_;
52 } 52 }
53 // Sets whether we're off the record. Default is false.
54 void set_off_the_record(bool off_the_record) {
55 off_the_record_ = off_the_record;
56 }
53 virtual bool IsOffTheRecord() { 57 virtual bool IsOffTheRecord() {
54 return false; 58 return off_the_record_;
55 } 59 }
56 virtual Profile* GetOffTheRecordProfile() { 60 virtual Profile* GetOffTheRecordProfile() {
57 return NULL; 61 return NULL;
58 } 62 }
59 virtual Profile* GetOriginalProfile() { 63 virtual Profile* GetOriginalProfile() {
60 return this; 64 return this;
61 } 65 }
62 virtual VisitedLinkMaster* GetVisitedLinkMaster() { 66 virtual VisitedLinkMaster* GetVisitedLinkMaster() {
63 return NULL; 67 return NULL;
64 } 68 }
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 scoped_ptr<BookmarkModel> bookmark_bar_model_; 176 scoped_ptr<BookmarkModel> bookmark_bar_model_;
173 177
174 // The TemplateURLFetcher. Only created if CreateTemplateURLModel is invoked. 178 // The TemplateURLFetcher. Only created if CreateTemplateURLModel is invoked.
175 scoped_ptr<TemplateURLModel> template_url_model_; 179 scoped_ptr<TemplateURLModel> template_url_model_;
176 180
177 // Do we have a history service? This defaults to the value of 181 // Do we have a history service? This defaults to the value of
178 // history_service, but can be explicitly set. 182 // history_service, but can be explicitly set.
179 bool has_history_service_; 183 bool has_history_service_;
180 184
181 std::wstring id_; 185 std::wstring id_;
186
187 bool off_the_record_;
182 }; 188 };
183 189
184 #endif // CHROME_TEST_TESTING_PROFILE_H__ 190 #endif // CHROME_TEST_TESTING_PROFILE_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698