Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(82)

Side by Side Diff: chrome_frame/chrome_frame_delegate.h

Issue 251012: Assert that thread-safe reference counting is used with... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome_frame/chrome_frame_automation.cc ('k') | chrome_frame/test/chrome_frame_unittests.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome_frame/chrome_frame_automation.cc ('k') | chrome_frame/test/chrome_frame_unittests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698