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

Unified Diff: chrome/common/temp_scaffolding_stubs.h

Issue 19024: Reverting 8722,8721. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/chrome.xcodeproj/project.pbxproj ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/temp_scaffolding_stubs.h
===================================================================
--- chrome/common/temp_scaffolding_stubs.h (revision 8722)
+++ chrome/common/temp_scaffolding_stubs.h (working copy)
@@ -22,19 +22,14 @@
#include "webkit/glue/window_open_disposition.h"
class Browser;
-class BookmarkService;
class CommandLine;
-class HistoryService;
class MetricsService;
class NavigationEntry;
class ProfileManager;
class Profile;
class SessionID;
-class SpellChecker;
class TabContents;
class URLRequestContext;
-class UserScriptMaster;
-class VisitedLinkMaster;
class WebContents;
//---------------------------------------------------------------------------
@@ -180,63 +175,24 @@
void BrowserClosed(Browser*) { }
};
-class HistoryService {
- public:
-
- class URLEnumerator {
- public:
- virtual ~URLEnumerator() {}
- virtual void OnURL(const GURL& url) = 0;
- virtual void OnComplete(bool success) = 0;
- };
-
- HistoryService() {}
- bool Init(const std::wstring& history_dir, BookmarkService* bookmark_service)
- { return false; }
- void SetOnBackendDestroyTask(Task*) {}
- void AddPage(GURL const&, void const*, int, GURL const&,
- int, std::vector<GURL> const&) {}
- void AddPage(const GURL& url) {}
- void SetPageContents(const GURL& url, const std::wstring& contents) {}
- void IterateURLs(URLEnumerator* iterator) {}
- void Cleanup() {}
- void AddRef() {}
- void Release() {}
-};
-
class Profile {
public:
- enum ServiceAccessType {
- EXPLICIT_ACCESS,
- IMPLICIT_ACCESS
- };
-
- public:
Profile(const std::wstring& user_data_dir);
virtual std::wstring GetPath() { return path_; }
virtual PrefService* GetPrefs();
void ResetTabRestoreService() { }
- SpellChecker* GetSpellChecker() { return NULL; }
- VisitedLinkMaster* GetVisitedLinkMaster() { return NULL; }
TabRestoreService* GetTabRestoreService() { return NULL; }
SessionService* GetSessionService() { return NULL; }
- UserScriptMaster* GetUserScriptMaster() { return NULL; }
bool IsOffTheRecord() { return false; }
URLRequestContext* GetRequestContext() { return NULL; }
virtual Profile* GetOriginalProfile() { return this; }
virtual Profile* GetOffTheRecordProfile() { return this; }
bool HasSessionService() { return false; }
- std::wstring GetID() { return L""; }
- HistoryService* GetHistoryService(ServiceAccessType access) {
- return &history_service_;
- }
-
private:
std::wstring GetPrefFilePath();
std::wstring path_;
scoped_ptr<PrefService> prefs_;
- HistoryService history_service_;
};
class ProfileManager : NonThreadSafe {
« no previous file with comments | « chrome/chrome.xcodeproj/project.pbxproj ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698