| 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_EXTERNAL_TAB_CONTAINER_WIN_H_ | 5 #ifndef CHROME_BROWSER_EXTERNAL_TAB_CONTAINER_WIN_H_ |
| 6 #define CHROME_BROWSER_EXTERNAL_TAB_CONTAINER_WIN_H_ | 6 #define CHROME_BROWSER_EXTERNAL_TAB_CONTAINER_WIN_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 // Overridden from TabContentsObserver: | 173 // Overridden from TabContentsObserver: |
| 174 // IPC::Channel::Listener implementation. | 174 // IPC::Channel::Listener implementation. |
| 175 virtual bool OnMessageReceived(const IPC::Message& message); | 175 virtual bool OnMessageReceived(const IPC::Message& message); |
| 176 | 176 |
| 177 // Message handlers | 177 // Message handlers |
| 178 void OnForwardMessageToExternalHost(const std::string& message, | 178 void OnForwardMessageToExternalHost(const std::string& message, |
| 179 const std::string& origin, | 179 const std::string& origin, |
| 180 const std::string& target); | 180 const std::string& target); |
| 181 | 181 |
| 182 // Overridden from NotificationObserver: | 182 // Overridden from NotificationObserver: |
| 183 virtual void Observe(NotificationType type, | 183 virtual void Observe(int type, |
| 184 const NotificationSource& source, | 184 const NotificationSource& source, |
| 185 const NotificationDetails& details); | 185 const NotificationDetails& details); |
| 186 | 186 |
| 187 // Overridden from DownloadTabHelperDelegate: | 187 // Overridden from DownloadTabHelperDelegate: |
| 188 virtual bool CanDownload(int request_id) OVERRIDE; | 188 virtual bool CanDownload(int request_id) OVERRIDE; |
| 189 virtual void OnStartDownload(DownloadItem* download, | 189 virtual void OnStartDownload(DownloadItem* download, |
| 190 TabContentsWrapper* tab) OVERRIDE; | 190 TabContentsWrapper* tab) OVERRIDE; |
| 191 | 191 |
| 192 // Returns the ExternalTabContainer instance associated with the cookie | 192 // Returns the ExternalTabContainer instance associated with the cookie |
| 193 // passed in. It also erases the corresponding reference from the map. | 193 // passed in. It also erases the corresponding reference from the map. |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 359 NOTREACHED(); | 359 NOTREACHED(); |
| 360 return false; | 360 return false; |
| 361 } | 361 } |
| 362 | 362 |
| 363 virtual bool ProcessUnhandledKeyStroke(HWND window, UINT message, | 363 virtual bool ProcessUnhandledKeyStroke(HWND window, UINT message, |
| 364 WPARAM wparam, LPARAM lparam) { | 364 WPARAM wparam, LPARAM lparam) { |
| 365 NOTREACHED(); | 365 NOTREACHED(); |
| 366 return false; | 366 return false; |
| 367 } | 367 } |
| 368 | 368 |
| 369 virtual void Observe(NotificationType type, const NotificationSource& source, | 369 virtual void Observe(int type, const NotificationSource& source, |
| 370 const NotificationDetails& details) {} | 370 const NotificationDetails& details) {} |
| 371 | 371 |
| 372 virtual void OpenURLFromTab(TabContents* source, const GURL& url, | 372 virtual void OpenURLFromTab(TabContents* source, const GURL& url, |
| 373 const GURL& referrer, | 373 const GURL& referrer, |
| 374 WindowOpenDisposition disposition, | 374 WindowOpenDisposition disposition, |
| 375 PageTransition::Type transition); | 375 PageTransition::Type transition); |
| 376 | 376 |
| 377 virtual void NavigationStateChanged(const TabContents* source, | 377 virtual void NavigationStateChanged(const TabContents* source, |
| 378 unsigned changed_flags) { | 378 unsigned changed_flags) { |
| 379 NOTREACHED(); | 379 NOTREACHED(); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 403 return false; | 403 return false; |
| 404 } | 404 } |
| 405 | 405 |
| 406 virtual void BeforeUnloadFired(TabContents* tab, bool proceed, | 406 virtual void BeforeUnloadFired(TabContents* tab, bool proceed, |
| 407 bool* proceed_to_fire_unload) { | 407 bool* proceed_to_fire_unload) { |
| 408 NOTREACHED(); | 408 NOTREACHED(); |
| 409 } | 409 } |
| 410 }; | 410 }; |
| 411 | 411 |
| 412 #endif // CHROME_BROWSER_EXTERNAL_TAB_CONTAINER_WIN_H_ | 412 #endif // CHROME_BROWSER_EXTERNAL_TAB_CONTAINER_WIN_H_ |
| OLD | NEW |