OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_FRAME_EXTERNAL_TAB_H_ | 5 #ifndef CHROME_FRAME_EXTERNAL_TAB_H_ |
6 #define CHROME_FRAME_EXTERNAL_TAB_H_ | 6 #define CHROME_FRAME_EXTERNAL_TAB_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <windows.h> | 9 #include <windows.h> |
10 #include <atlbase.h> | 10 #include <atlbase.h> |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 ExternalTabProxy(); | 87 ExternalTabProxy(); |
88 ~ExternalTabProxy(); | 88 ~ExternalTabProxy(); |
89 | 89 |
90 #ifdef UNIT_TEST | 90 #ifdef UNIT_TEST |
91 void set_proxy_factory(ChromeProxyFactory* factory) { | 91 void set_proxy_factory(ChromeProxyFactory* factory) { |
92 proxy_factory_ = factory; | 92 proxy_factory_ = factory; |
93 } | 93 } |
94 #endif | 94 #endif |
95 | 95 |
96 // IPC::Channel::Listener implementation. | 96 // IPC::Channel::Listener implementation. |
97 void OnMessageReceived(const IPC::Message& message); | 97 bool OnMessageReceived(const IPC::Message& message); |
98 | 98 |
99 // | 99 // |
100 virtual void CreateTab(const CreateTabParams& create_params, | 100 virtual void CreateTab(const CreateTabParams& create_params, |
101 UIDelegate* delegate); | 101 UIDelegate* delegate); |
102 virtual void Navigate(const std::string& url, const std::string& referrer, | 102 virtual void Navigate(const std::string& url, const std::string& referrer, |
103 NavigationConstraints* navigation_constraints); | 103 NavigationConstraints* navigation_constraints); |
104 virtual void NavigateToIndex(int index); | 104 virtual void NavigateToIndex(int index); |
105 virtual void ForwardMessageFromExternalHost(const std::string& message, | 105 virtual void ForwardMessageFromExternalHost(const std::string& message, |
106 const std::string& origin, const std::string& target); | 106 const std::string& origin, const std::string& target); |
107 virtual void ChromeFrameHostMoved(); | 107 virtual void ChromeFrameHostMoved(); |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 GURL url; | 222 GURL url; |
223 GURL referrer; | 223 GURL referrer; |
224 void Set(const GURL& gurl, const GURL& ref) { | 224 void Set(const GURL& gurl, const GURL& ref) { |
225 url = gurl; | 225 url = gurl; |
226 referrer = ref; | 226 referrer = ref; |
227 } | 227 } |
228 } pending_navigation_; | 228 } pending_navigation_; |
229 }; | 229 }; |
230 | 230 |
231 #endif // CHROME_FRAME_EXTERNAL_TAB_H_ | 231 #endif // CHROME_FRAME_EXTERNAL_TAB_H_ |
OLD | NEW |