diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-02 06:42:05 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-02 06:42:05 +0000 |
commit | 0303f31c7e78cd5e1e54773c50b9216710630cfa (patch) | |
tree | 86a23bd959f744152f1bfe3a1ad91e965994a0d1 /chrome/browser/tab_contents/web_contents.h | |
parent | 0b7c092f7f5b196fd9085f1ab796a0c9ac9473a6 (diff) | |
download | chromium_src-0303f31c7e78cd5e1e54773c50b9216710630cfa.zip chromium_src-0303f31c7e78cd5e1e54773c50b9216710630cfa.tar.gz chromium_src-0303f31c7e78cd5e1e54773c50b9216710630cfa.tar.bz2 |
Remove old web app code it's no longer needed. Simplifies startup a little.
Also fixes a regression from the BrowserInit porting work. I was a little over-zealous removing the CommandLine handling. It turns out that it's this that MessageWindow uses to convey the command line of the signalling process to the existing process, and that the existing process re-runs BrowserInit with the signalling process' command line. So I plumbed that back through again.
Review URL: http://codereview.chromium.org/19746
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9034 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tab_contents/web_contents.h')
-rw-r--r-- | chrome/browser/tab_contents/web_contents.h | 27 |
1 files changed, 2 insertions, 25 deletions
diff --git a/chrome/browser/tab_contents/web_contents.h b/chrome/browser/tab_contents/web_contents.h index 55f1ee7..39bf2c6 100644 --- a/chrome/browser/tab_contents/web_contents.h +++ b/chrome/browser/tab_contents/web_contents.h @@ -12,7 +12,7 @@ #include "chrome/browser/tab_contents/render_view_host_manager.h" #include "chrome/browser/shell_dialogs.h" #include "chrome/browser/tab_contents/tab_contents.h" -#include "chrome/browser/web_app.h" +#include "chrome/common/gears_api.h" class AutofillManager; class InterstitialPageDelegate; @@ -32,8 +32,7 @@ class WaitableEvent; class WebContents : public TabContents, public RenderViewHostDelegate, public RenderViewHostManager::Delegate, - public SelectFileDialog::Listener, - public WebApp::Observer { + public SelectFileDialog::Listener { public: // If instance is NULL, then creates a new process for this view. Otherwise // initialize with a process already created for a different WebContents. @@ -88,7 +87,6 @@ class WebContents : public TabContents, virtual void Destroy(); virtual WebContents* AsWebContents() { return this; } virtual SiteInstance* GetSiteInstance() const; - virtual SkBitmap GetFavIcon(); virtual std::wstring GetStatusText() const; virtual bool NavigateToPendingEntry(bool reload); virtual void Stop(); @@ -113,13 +111,6 @@ class WebContents : public TabContents, // Web apps ------------------------------------------------------------------ - // Sets the WebApp for this WebContents. - void SetWebApp(WebApp* web_app); - WebApp* web_app() { return web_app_.get(); } - - // Return whether this tab contents was created to contain an application. - bool IsWebApplication() const; - // Tell Gears to create a shortcut for the current page. void CreateShortcut(); @@ -431,17 +422,6 @@ class WebContents : public TabContents, // Send webkit specific settings to the renderer. void UpdateWebPreferences(); - // Return whether the optional web application is active for the current URL. - // Call this method to check if web app properties are in effect. - // - // Note: This method should be used for presentation but not security. The app - // is always active if the containing window is a web application. - bool IsWebApplicationActive() const; - - // WebApp::Observer method. Invoked when the set of images contained in the - // web app changes. Notifies the delegate our favicon has changed. - virtual void WebAppImagesChanged(WebApp* web_app); - // Called when the user dismisses the shortcut creation dialog. 'success' is // true if the shortcut was created. void OnGearsCreateShortcutDone(const GearsShortcutData& shortcut_data, @@ -566,9 +546,6 @@ class WebContents : public TabContents, net::LoadState load_state_; std::wstring load_state_host_; - // Non-null if we're displaying content for a web app. - scoped_refptr<WebApp> web_app_; - DISALLOW_COPY_AND_ASSIGN(WebContents); }; |