OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_ANDROID_WEBAPPS_SINGLE_TAB_MODE_TAB_HELPER_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_WEBAPPS_SINGLE_TAB_MODE_TAB_HELPER_H_ |
6 #define CHROME_BROWSER_ANDROID_WEBAPPS_SINGLE_TAB_MODE_TAB_HELPER_H_ | 6 #define CHROME_BROWSER_ANDROID_WEBAPPS_SINGLE_TAB_MODE_TAB_HELPER_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 23 matching lines...) Expand all Loading... |
34 | 34 |
35 // Handles opening the given URL through the TabModel. | 35 // Handles opening the given URL through the TabModel. |
36 void HandleOpenUrl(const BlockedWindowParams& params); | 36 void HandleOpenUrl(const BlockedWindowParams& params); |
37 | 37 |
38 // Permanently block this WebContents from creating new windows -- there is no | 38 // Permanently block this WebContents from creating new windows -- there is no |
39 // current need to allow toggling this flag on or off. | 39 // current need to allow toggling this flag on or off. |
40 void PermanentlyBlockAllNewWindows(); | 40 void PermanentlyBlockAllNewWindows(); |
41 | 41 |
42 // content::WebContentsObserver | 42 // content::WebContentsObserver |
43 virtual void RenderViewCreated(content::RenderViewHost* render_view_host) | 43 virtual void RenderViewCreated(content::RenderViewHost* render_view_host) |
44 OVERRIDE; | 44 override; |
45 virtual void RenderViewDeleted(content::RenderViewHost* render_view_host) | 45 virtual void RenderViewDeleted(content::RenderViewHost* render_view_host) |
46 OVERRIDE; | 46 override; |
47 | 47 |
48 private: | 48 private: |
49 explicit SingleTabModeTabHelper(content::WebContents* web_contents); | 49 explicit SingleTabModeTabHelper(content::WebContents* web_contents); |
50 friend class content::WebContentsUserData<SingleTabModeTabHelper>; | 50 friend class content::WebContentsUserData<SingleTabModeTabHelper>; |
51 | 51 |
52 bool block_all_new_windows_; | 52 bool block_all_new_windows_; |
53 | 53 |
54 DISALLOW_COPY_AND_ASSIGN(SingleTabModeTabHelper); | 54 DISALLOW_COPY_AND_ASSIGN(SingleTabModeTabHelper); |
55 }; | 55 }; |
56 | 56 |
57 #endif // CHROME_BROWSER_ANDROID_WEBAPPS_SINGLE_TAB_MODE_TAB_HELPER_H_ | 57 #endif // CHROME_BROWSER_ANDROID_WEBAPPS_SINGLE_TAB_MODE_TAB_HELPER_H_ |
OLD | NEW |