| 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 void RetainCallee(ChromeFrameDelegate* obj) {} | 40 static void RetainCallee(ChromeFrameDelegate* obj) { |
| 41 void ReleaseCallee(ChromeFrameDelegate* obj) {} | 41 } |
| 42 |
| 43 static void ReleaseCallee(ChromeFrameDelegate* obj) { |
| 44 } |
| 42 }; | 45 }; |
| 43 | 46 |
| 44 extern UINT kAutomationServerReady; | 47 extern UINT kAutomationServerReady; |
| 45 extern UINT kMessageFromChromeFrame; | 48 extern UINT kMessageFromChromeFrame; |
| 46 | 49 |
| 47 class ChromeFrameDelegateImpl : public ChromeFrameDelegate { | 50 class ChromeFrameDelegateImpl : public ChromeFrameDelegate { |
| 48 public: | 51 public: |
| 49 virtual WindowType GetWindow() { return NULL; } | 52 virtual WindowType GetWindow() { return NULL; } |
| 50 virtual void GetBounds(RECT* bounds) {} | 53 virtual void GetBounds(RECT* bounds) {} |
| 51 virtual std::string GetDocumentUrl() { return std::string(); } | 54 virtual std::string GetDocumentUrl() { return std::string(); } |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 int bytes_to_read) {} | 90 int bytes_to_read) {} |
| 88 virtual void OnRequestEnd(int tab_handle, int request_id, | 91 virtual void OnRequestEnd(int tab_handle, int request_id, |
| 89 const URLRequestStatus& status) {} | 92 const URLRequestStatus& status) {} |
| 90 virtual void OnSetCookieAsync(int tab_handle, const GURL& url, | 93 virtual void OnSetCookieAsync(int tab_handle, const GURL& url, |
| 91 const std::string& cookie) {} | 94 const std::string& cookie) {} |
| 92 virtual void OnAttachExternalTab(int tab_handle, intptr_t cookie, | 95 virtual void OnAttachExternalTab(int tab_handle, intptr_t cookie, |
| 93 int disposition) {} | 96 int disposition) {} |
| 94 }; | 97 }; |
| 95 | 98 |
| 96 #endif // CHROME_FRAME_CHROME_FRAME_DELEGATE_H_ | 99 #endif // CHROME_FRAME_CHROME_FRAME_DELEGATE_H_ |
| OLD | NEW |