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

Side by Side Diff: ppapi/proxy/ppb_url_request_info_proxy.cc

Issue 7740038: Use macros to define pepper interfaces (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: New patch Created 9 years, 3 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 | « ppapi/proxy/ppb_url_request_info_proxy.h ('k') | ppapi/proxy/ppb_url_response_info_proxy.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "ppapi/proxy/ppb_url_request_info_proxy.h"
6
7 #include "ppapi/proxy/plugin_dispatcher.h"
8 #include "ppapi/shared_impl/url_request_info_impl.h"
9 #include "ppapi/thunk/thunk.h"
10
11 namespace ppapi {
12 namespace proxy {
13
14 namespace {
15
16 InterfaceProxy* CreateURLRequestInfoProxy(Dispatcher* dispatcher,
17 const void* target_interface) {
18 return new PPB_URLRequestInfo_Proxy(dispatcher, target_interface);
19 }
20
21 } // namespace
22
23 PPB_URLRequestInfo_Proxy::PPB_URLRequestInfo_Proxy(
24 Dispatcher* dispatcher,
25 const void* target_interface)
26 : InterfaceProxy(dispatcher, target_interface) {
27 }
28
29 PPB_URLRequestInfo_Proxy::~PPB_URLRequestInfo_Proxy() {
30 }
31
32 // static
33 const InterfaceProxy::Info* PPB_URLRequestInfo_Proxy::GetInfo() {
34 static const Info info = {
35 thunk::GetPPB_URLRequestInfo_Thunk(),
36 PPB_URLREQUESTINFO_INTERFACE,
37 INTERFACE_ID_PPB_URL_REQUEST_INFO,
38 false,
39 &CreateURLRequestInfoProxy,
40 };
41 return &info;
42 }
43
44 bool PPB_URLRequestInfo_Proxy::OnMessageReceived(const IPC::Message& msg) {
45 // No messages to handle.
46 return false;
47 }
48
49 } // namespace proxy
50 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/proxy/ppb_url_request_info_proxy.h ('k') | ppapi/proxy/ppb_url_response_info_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698