| 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_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> |
| 11 #include <atlwin.h> | 11 #include <atlwin.h> |
| 12 | 12 |
| 13 #include <string> | 13 #include <string> |
| 14 #include <vector> | 14 #include <vector> |
| 15 | 15 |
| 16 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
| 17 #include "base/time.h" | 17 #include "base/time.h" |
| 18 #include "base/win/scoped_comptr.h" | 18 #include "base/win/scoped_comptr.h" |
| 19 #include "chrome/common/automation_constants.h" | 19 #include "chrome/common/automation_constants.h" |
| 20 #include "chrome_frame/cfproxy.h" | 20 #include "chrome_frame/cfproxy.h" |
| 21 #include "chrome_frame/task_marshaller.h" | 21 #include "chrome_frame/task_marshaller.h" |
| 22 #include "content/public/common/page_zoom.h" | 22 #include "content/public/common/page_zoom.h" |
| 23 #include "googleurl/src/gurl.h" | 23 #include "googleurl/src/gurl.h" |
| 24 | 24 |
| 25 struct AttachExternalTabParams; |
| 26 struct AutomationURLRequest; |
| 27 struct ContextMenuModel; |
| 28 struct MiniContextMenuParams; |
| 29 struct NavigationInfo; |
| 25 class Task; | 30 class Task; |
| 26 class CancelableTask; | |
| 27 | 31 |
| 28 namespace base { | 32 namespace base { |
| 29 class TimeDelta; | |
| 30 class WaitableEvent; | 33 class WaitableEvent; |
| 31 } | 34 } |
| 32 | 35 |
| 33 namespace IPC { | |
| 34 struct NavigationInfo; | |
| 35 } | |
| 36 | |
| 37 namespace gfx { | 36 namespace gfx { |
| 38 class Rect; | 37 class Rect; |
| 39 } | 38 } |
| 40 | 39 |
| 40 namespace net { |
| 41 class URLRequestStatus; |
| 42 } |
| 41 | 43 |
| 42 // This is the delegate/callback interface that has to be implemented | 44 // This is the delegate/callback interface that has to be implemented |
| 43 // by the customers of ExternalTabProxy class. | 45 // by the customers of ExternalTabProxy class. |
| 44 class UIDelegate { | 46 class UIDelegate { |
| 45 public: | 47 public: |
| 46 virtual void OnNavigationStateChanged( | 48 virtual void OnNavigationStateChanged( |
| 47 int flags, const NavigationInfo& nav_info) = 0; | 49 int flags, const NavigationInfo& nav_info) = 0; |
| 48 virtual void OnUpdateTargetUrl(const std::wstring& new_target_url) = 0; | 50 virtual void OnUpdateTargetUrl(const std::wstring& new_target_url) = 0; |
| 49 virtual void OnLoad(const GURL& url) = 0; | 51 virtual void OnLoad(const GURL& url) = 0; |
| 50 virtual void OnMoveWindow(const gfx::Rect& pos) = 0; | 52 virtual void OnMoveWindow(const gfx::Rect& pos) = 0; |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 GURL url; | 220 GURL url; |
| 219 GURL referrer; | 221 GURL referrer; |
| 220 void Set(const GURL& gurl, const GURL& ref) { | 222 void Set(const GURL& gurl, const GURL& ref) { |
| 221 url = gurl; | 223 url = gurl; |
| 222 referrer = ref; | 224 referrer = ref; |
| 223 } | 225 } |
| 224 } pending_navigation_; | 226 } pending_navigation_; |
| 225 }; | 227 }; |
| 226 | 228 |
| 227 #endif // CHROME_FRAME_EXTERNAL_TAB_H_ | 229 #endif // CHROME_FRAME_EXTERNAL_TAB_H_ |
| OLD | NEW |