| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_TAB_CONTENTS_CHROME_INTERSTITIAL_PAGE_H_ | 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_CHROME_INTERSTITIAL_PAGE_H_ |
| 6 #define CHROME_BROWSER_TAB_CONTENTS_CHROME_INTERSTITIAL_PAGE_H_ | 6 #define CHROME_BROWSER_TAB_CONTENTS_CHROME_INTERSTITIAL_PAGE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 ChromeInterstitialPage(TabContents* tab, | 22 ChromeInterstitialPage(TabContents* tab, |
| 23 bool new_navigation, | 23 bool new_navigation, |
| 24 const GURL& url); | 24 const GURL& url); |
| 25 virtual ~ChromeInterstitialPage(); | 25 virtual ~ChromeInterstitialPage(); |
| 26 | 26 |
| 27 // Shows the interstitial page in the tab. | 27 // Shows the interstitial page in the tab. |
| 28 virtual void Show(); | 28 virtual void Show(); |
| 29 | 29 |
| 30 protected: | 30 protected: |
| 31 // NotificationObserver method: | 31 // NotificationObserver method: |
| 32 virtual void Observe(NotificationType type, | 32 virtual void Observe(int type, |
| 33 const NotificationSource& source, | 33 const NotificationSource& source, |
| 34 const NotificationDetails& details); | 34 const NotificationDetails& details); |
| 35 | 35 |
| 36 // Invoked when the page sent a command through DOMAutomation. | 36 // Invoked when the page sent a command through DOMAutomation. |
| 37 virtual void CommandReceived(const std::string& command) {} | 37 virtual void CommandReceived(const std::string& command) {} |
| 38 | 38 |
| 39 private: | 39 private: |
| 40 DISALLOW_COPY_AND_ASSIGN(ChromeInterstitialPage); | 40 DISALLOW_COPY_AND_ASSIGN(ChromeInterstitialPage); |
| 41 }; | 41 }; |
| 42 | 42 |
| 43 #endif // CHROME_BROWSER_TAB_CONTENTS_CHROME_INTERSTITIAL_PAGE_H_ | 43 #endif // CHROME_BROWSER_TAB_CONTENTS_CHROME_INTERSTITIAL_PAGE_H_ |
| OLD | NEW |