OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 | 7 |
8 #include "chrome/test/automation/automation_messages.h" | 8 #include "chrome/test/automation/automation_messages.h" |
9 #include "ipc/ipc_message.h" | 9 #include "ipc/ipc_message.h" |
10 | 10 |
(...skipping 19 matching lines...) Expand all Loading... |
30 // Returns true if this instance is alive and well for processing automation | 30 // Returns true if this instance is alive and well for processing automation |
31 // messages. | 31 // messages. |
32 virtual bool IsValid() const = 0; | 32 virtual bool IsValid() const = 0; |
33 | 33 |
34 protected: | 34 protected: |
35 ~ChromeFrameDelegate() {} | 35 ~ChromeFrameDelegate() {} |
36 }; | 36 }; |
37 | 37 |
38 // Template specialization | 38 // Template specialization |
39 template <> struct RunnableMethodTraits<ChromeFrameDelegate> { | 39 template <> struct RunnableMethodTraits<ChromeFrameDelegate> { |
40 static void RetainCallee(ChromeFrameDelegate* obj) { | 40 void RetainCallee(ChromeFrameDelegate* obj) {} |
41 } | 41 void ReleaseCallee(ChromeFrameDelegate* obj) {} |
42 | |
43 static void ReleaseCallee(ChromeFrameDelegate* obj) { | |
44 } | |
45 }; | 42 }; |
46 | 43 |
47 extern UINT kAutomationServerReady; | 44 extern UINT kAutomationServerReady; |
48 extern UINT kMessageFromChromeFrame; | 45 extern UINT kMessageFromChromeFrame; |
49 | 46 |
50 class ChromeFrameDelegateImpl : public ChromeFrameDelegate { | 47 class ChromeFrameDelegateImpl : public ChromeFrameDelegate { |
51 public: | 48 public: |
52 virtual WindowType GetWindow() { return NULL; } | 49 virtual WindowType GetWindow() { return NULL; } |
53 virtual void GetBounds(RECT* bounds) {} | 50 virtual void GetBounds(RECT* bounds) {} |
54 virtual std::string GetDocumentUrl() { return std::string(); } | 51 virtual std::string GetDocumentUrl() { return std::string(); } |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 int bytes_to_read) {} | 87 int bytes_to_read) {} |
91 virtual void OnRequestEnd(int tab_handle, int request_id, | 88 virtual void OnRequestEnd(int tab_handle, int request_id, |
92 const URLRequestStatus& status) {} | 89 const URLRequestStatus& status) {} |
93 virtual void OnSetCookieAsync(int tab_handle, const GURL& url, | 90 virtual void OnSetCookieAsync(int tab_handle, const GURL& url, |
94 const std::string& cookie) {} | 91 const std::string& cookie) {} |
95 virtual void OnAttachExternalTab(int tab_handle, intptr_t cookie, | 92 virtual void OnAttachExternalTab(int tab_handle, intptr_t cookie, |
96 int disposition) {} | 93 int disposition) {} |
97 }; | 94 }; |
98 | 95 |
99 #endif // CHROME_FRAME_CHROME_FRAME_DELEGATE_H_ | 96 #endif // CHROME_FRAME_CHROME_FRAME_DELEGATE_H_ |
OLD | NEW |