| 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_CHROME_FRAME_DELEGATE_H_ | 5 #ifndef CHROME_FRAME_CHROME_FRAME_DELEGATE_H_ |
| 6 #define CHROME_FRAME_CHROME_FRAME_DELEGATE_H_ | 6 #define CHROME_FRAME_CHROME_FRAME_DELEGATE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <atlbase.h> | 9 #include <atlbase.h> |
| 10 #include <atlwin.h> | 10 #include <atlwin.h> |
| 11 #include <queue> | 11 #include <queue> |
| 12 #include <string> | 12 #include <string> |
| 13 #include <vector> | 13 #include <vector> |
| 14 | 14 |
| 15 #include "base/file_path.h" | 15 #include "base/file_path.h" |
| 16 #include "base/synchronization/lock.h" | 16 #include "base/synchronization/lock.h" |
| 17 #include "chrome/common/automation_messages.h" | 17 #include "base/task.h" |
| 18 #include "chrome/common/automation_constants.h" |
| 18 #include "ipc/ipc_message.h" | 19 #include "ipc/ipc_message.h" |
| 19 | 20 |
| 21 class GURL; |
| 22 struct AttachExternalTabParams; |
| 23 struct AutomationURLRequest; |
| 24 struct MiniContextMenuParams; |
| 25 struct NavigationInfo; |
| 26 |
| 27 namespace net { |
| 28 class URLRequestStatus; |
| 29 } |
| 30 |
| 20 // A common interface supported by all the browser specific ChromeFrame | 31 // A common interface supported by all the browser specific ChromeFrame |
| 21 // implementations. | 32 // implementations. |
| 22 class ChromeFrameDelegate { | 33 class ChromeFrameDelegate { |
| 23 public: | 34 public: |
| 24 typedef HWND WindowType; | 35 typedef HWND WindowType; |
| 25 | 36 |
| 26 virtual WindowType GetWindow() const = 0; | 37 virtual WindowType GetWindow() const = 0; |
| 27 virtual void GetBounds(RECT* bounds) = 0; | 38 virtual void GetBounds(RECT* bounds) = 0; |
| 28 virtual std::string GetDocumentUrl() = 0; | 39 virtual std::string GetDocumentUrl() = 0; |
| 29 virtual void OnAutomationServerReady() = 0; | 40 virtual void OnAutomationServerReady() = 0; |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 } | 210 } |
| 200 | 211 |
| 201 return false; | 212 return false; |
| 202 } | 213 } |
| 203 | 214 |
| 204 base::Lock lock_; | 215 base::Lock lock_; |
| 205 std::queue<Task*> pending_tasks_; | 216 std::queue<Task*> pending_tasks_; |
| 206 }; | 217 }; |
| 207 | 218 |
| 208 #endif // CHROME_FRAME_CHROME_FRAME_DELEGATE_H_ | 219 #endif // CHROME_FRAME_CHROME_FRAME_DELEGATE_H_ |
| OLD | NEW |