| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BROWSER_UI_PANELS_PANEL_HOST_H_ | 5 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_HOST_H_ |
| 6 #define CHROME_BROWSER_UI_PANELS_PANEL_HOST_H_ | 6 #define CHROME_BROWSER_UI_PANELS_PANEL_HOST_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 // content::WebContentsObserver overrides. | 77 // content::WebContentsObserver overrides. |
| 78 void RenderProcessGone(base::TerminationStatus status) override; | 78 void RenderProcessGone(base::TerminationStatus status) override; |
| 79 void WebContentsDestroyed() override; | 79 void WebContentsDestroyed() override; |
| 80 | 80 |
| 81 // extensions::ExtensionFunctionDispatcher::Delegate overrides. | 81 // extensions::ExtensionFunctionDispatcher::Delegate overrides. |
| 82 extensions::WindowController* GetExtensionWindowController() const override; | 82 extensions::WindowController* GetExtensionWindowController() const override; |
| 83 content::WebContents* GetAssociatedWebContents() const override; | 83 content::WebContents* GetAssociatedWebContents() const override; |
| 84 | 84 |
| 85 // Actions on web contents. | 85 // Actions on web contents. |
| 86 void Reload(); | 86 void Reload(); |
| 87 void ReloadIgnoringCache(); | 87 void ReloadBypassingCache(); |
| 88 void StopLoading(); | 88 void StopLoading(); |
| 89 void Zoom(content::PageZoom zoom); | 89 void Zoom(content::PageZoom zoom); |
| 90 | 90 |
| 91 private: | 91 private: |
| 92 // Helper to close panel via the message loop. | 92 // Helper to close panel via the message loop. |
| 93 void ClosePanel(); | 93 void ClosePanel(); |
| 94 | 94 |
| 95 Panel* panel_; // Weak, owns us. | 95 Panel* panel_; // Weak, owns us. |
| 96 Profile* profile_; | 96 Profile* profile_; |
| 97 | 97 |
| 98 scoped_ptr<content::WebContents> web_contents_; | 98 scoped_ptr<content::WebContents> web_contents_; |
| 99 | 99 |
| 100 // The following factory is used to close the panel via the message loop. | 100 // The following factory is used to close the panel via the message loop. |
| 101 base::WeakPtrFactory<PanelHost> weak_factory_; | 101 base::WeakPtrFactory<PanelHost> weak_factory_; |
| 102 | 102 |
| 103 DISALLOW_COPY_AND_ASSIGN(PanelHost); | 103 DISALLOW_COPY_AND_ASSIGN(PanelHost); |
| 104 }; | 104 }; |
| 105 | 105 |
| 106 #endif // CHROME_BROWSER_UI_PANELS_PANEL_HOST_H_ | 106 #endif // CHROME_BROWSER_UI_PANELS_PANEL_HOST_H_ |
| OLD | NEW |