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

Side by Side Diff: public/platform/WebPermissionCallbacks.h

Issue 401973003: Rename WebCore namespace to blink in Public (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 | « public/platform/WebMediaStreamTrackSourcesRequest.h ('k') | public/platform/WebPoint.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 WebPermissionCallbacks_h 5 #ifndef WebPermissionCallbacks_h
6 #define WebPermissionCallbacks_h 6 #define WebPermissionCallbacks_h
7 7
8 #include "WebPrivatePtr.h" 8 #include "WebPrivatePtr.h"
9 9
10 namespace WebCore { 10 namespace blink {
11 class PermissionCallbacks; 11 class PermissionCallbacks;
12 } 12 }
13 13
14 namespace WTF { template <typename T> class PassOwnPtr; } 14 namespace WTF { template <typename T> class PassOwnPtr; }
15 15
16 namespace blink { 16 namespace blink {
17 17
18 class WebPermissionCallbacksPrivate; 18 class WebPermissionCallbacksPrivate;
19 19
20 class WebPermissionCallbacks { 20 class WebPermissionCallbacks {
21 public: 21 public:
22 ~WebPermissionCallbacks() { reset(); } 22 ~WebPermissionCallbacks() { reset(); }
23 WebPermissionCallbacks() { } 23 WebPermissionCallbacks() { }
24 WebPermissionCallbacks(const WebPermissionCallbacks& c) { assign(c); } 24 WebPermissionCallbacks(const WebPermissionCallbacks& c) { assign(c); }
25 WebPermissionCallbacks& operator=(const WebPermissionCallbacks& c) 25 WebPermissionCallbacks& operator=(const WebPermissionCallbacks& c)
26 { 26 {
27 assign(c); 27 assign(c);
28 return *this; 28 return *this;
29 } 29 }
30 30
31 BLINK_PLATFORM_EXPORT void reset(); 31 BLINK_PLATFORM_EXPORT void reset();
32 BLINK_PLATFORM_EXPORT void assign(const WebPermissionCallbacks&); 32 BLINK_PLATFORM_EXPORT void assign(const WebPermissionCallbacks&);
33 33
34 #if INSIDE_BLINK 34 #if INSIDE_BLINK
35 BLINK_PLATFORM_EXPORT WebPermissionCallbacks(const WTF::PassOwnPtr<WebCore:: PermissionCallbacks>&); 35 BLINK_PLATFORM_EXPORT WebPermissionCallbacks(const WTF::PassOwnPtr<blink::Pe rmissionCallbacks>&);
36 #endif 36 #endif
37 37
38 BLINK_PLATFORM_EXPORT void doAllow(); 38 BLINK_PLATFORM_EXPORT void doAllow();
39 BLINK_PLATFORM_EXPORT void doDeny(); 39 BLINK_PLATFORM_EXPORT void doDeny();
40 40
41 private: 41 private:
42 WebPrivatePtr<WebPermissionCallbacksPrivate> m_private; 42 WebPrivatePtr<WebPermissionCallbacksPrivate> m_private;
43 }; 43 };
44 44
45 } // namespace blink 45 } // namespace blink
46 46
47 #endif 47 #endif
OLDNEW
« no previous file with comments | « public/platform/WebMediaStreamTrackSourcesRequest.h ('k') | public/platform/WebPoint.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698