summaryrefslogtreecommitdiffstats
path: root/chrome/common/temp_scaffolding_stubs.h
diff options
context:
space:
mode:
authorbeng@google.com <beng@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-30 23:52:16 +0000
committerbeng@google.com <beng@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-30 23:52:16 +0000
commitf211befbc09c492a5c882fd4f08d71a69ea7c1fa (patch)
tree8f97254bdec8ed8d80a377453dd7ecb3ca3e420b /chrome/common/temp_scaffolding_stubs.h
parent2840577282782b79e48252402785fb53a1d63dcf (diff)
downloadchromium_src-f211befbc09c492a5c882fd4f08d71a69ea7c1fa.zip
chromium_src-f211befbc09c492a5c882fd4f08d71a69ea7c1fa.tar.gz
chromium_src-f211befbc09c492a5c882fd4f08d71a69ea7c1fa.tar.bz2
Bring up BrowserInit on MacOS X.
Review URL: http://codereview.chromium.org/19695 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8998 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/temp_scaffolding_stubs.h')
-rw-r--r--chrome/common/temp_scaffolding_stubs.h86
1 files changed, 68 insertions, 18 deletions
diff --git a/chrome/common/temp_scaffolding_stubs.h b/chrome/common/temp_scaffolding_stubs.h
index 79ea9c5..8dbcfcd 100644
--- a/chrome/common/temp_scaffolding_stubs.h
+++ b/chrome/common/temp_scaffolding_stubs.h
@@ -37,6 +37,8 @@ class SessionID;
class SiteInstance;
class SpellChecker;
class TabContents;
+class TemplateURL;
+class TemplateURLRef;
class URLRequestContext;
class UserScriptMaster;
class VisitedLinkMaster;
@@ -68,24 +70,6 @@ class MessageWindow {
void Unlock() { }
};
-class BrowserInit {
- public:
- static bool ProcessCommandLine(const CommandLine& parsed_command_line,
- const std::wstring& cur_dir,
- PrefService* prefs, bool process_startup,
- Profile* profile, int* return_code);
- static bool LaunchBrowser(const CommandLine& parsed_command_line,
- Profile* profile, const std::wstring& cur_dir,
- bool process_startup, int* return_code);
- private:
- static bool LaunchBrowserImpl(const CommandLine& parsed_command_line,
- Profile* profile, const std::wstring& cur_dir,
- bool process_startup, int* return_code);
- static Browser* OpenURLsInBrowser(Browser* browser,
- Profile* profile,
- const std::vector<GURL>& urls);
-};
-
class FirstRun {
public:
static bool IsChromeFirstRun() { return false; }
@@ -188,6 +172,20 @@ class SessionService : public base::RefCountedThreadSafe<SessionService> {
void TabRestored(NavigationController*) { }
};
+class SessionRestore {
+ public:
+ static void RestoreSession(Profile* profile,
+ Browser* browser,
+ bool clobber_existing_window,
+ bool always_create_tabbed_browser,
+ const std::vector<GURL>& urls_to_open) {}
+ static void RestoreSessionSynchronously(
+ Profile* profile,
+ const std::vector<GURL>& urls_to_open) {}
+
+ static size_t num_tabs_to_load_;
+};
+
class TabRestoreService : public base::RefCountedThreadSafe<TabRestoreService> {
public:
explicit TabRestoreService(Profile* profile) { }
@@ -290,6 +288,8 @@ class NavigationController {
NavigationEntry* GetActiveEntry() const { return entry_.get(); }
void LoadURL(const GURL& url, const GURL& referrer,
PageTransition::Type type) { }
+ static void DisablePromptOnRepost() {}
+
private:
scoped_ptr<NavigationEntry> entry_;
};
@@ -306,6 +306,20 @@ class InterstitialPage {
virtual void DontProceed() { }
};
+class InfoBarDelegate {
+};
+
+class ConfirmInfoBarDelegate : public InfoBarDelegate {
+ public:
+ explicit ConfirmInfoBarDelegate(TabContents* contents) {}
+
+ enum InfoBarButton {
+ BUTTON_NONE = 0,
+ BUTTON_OK,
+ BUTTON_CANCEL
+ };
+};
+
class RenderViewHost {
public:
bool HasUnloadListener() const { return false; }
@@ -333,6 +347,9 @@ class TabContents {
static TabContents* CreateWithType(TabContentsType type,
Profile* profile,
SiteInstance* instance);
+ void AddInfoBar(InfoBarDelegate* delegate) {}
+
+ Profile* profile() const { return NULL; }
private:
GURL url_;
std::wstring title_;
@@ -433,6 +450,30 @@ class SpellChecker : public base::RefCountedThreadSafe<SpellChecker> {
const std::wstring& custom_dictionary_file_name) {}
};
+class WebAppLauncher {
+ public:
+ static void Launch(Profile* profile, const GURL& url) {
+ }
+};
+
+class AutocompleteResult {
+ public:
+ static void set_max_matches(int) { }
+};
+
+class AutocompleteProvider {
+ public:
+ static void set_max_matches(int) {}
+};
+
+class URLFixerUpper {
+ public:
+ static std::wstring FixupRelativeFile(const std::wstring& base_dir,
+ const std::wstring& text) {
+ return L"about:blank";
+ }
+};
+
class TemplateURLModel {
public:
explicit TemplateURLModel(Profile* profile) { }
@@ -440,6 +481,15 @@ class TemplateURLModel {
return L"";
}
static GURL GenerateSearchURL(const TemplateURL* t_url) { return GURL(); }
+ TemplateURL* GetDefaultSearchProvider() { return NULL; }
};
+namespace chrome_browser_net {
+
+void EnableDnsDetailedLog(bool);
+
+void EnableDnsPrefetch(bool);
+
+} // namespace chrome_browser_net
+
#endif // CHROME_COMMON_TEMP_SCAFFOLDING_STUBS_H_