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

Side by Side Diff: chrome/renderer/pepper/pepper_extensions_common_host.h

Issue 231883002: Refactor some ResourceMessageReply usages. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use ReplyMessageContext.is_valid() method. Created 6 years, 8 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_RENDERER_PEPPER_PEPPER_EXTENSIONS_COMMON_HOST_H_ 5 #ifndef CHROME_RENDERER_PEPPER_PEPPER_EXTENSIONS_COMMON_HOST_H_
6 #define CHROME_RENDERER_PEPPER_PEPPER_EXTENSIONS_COMMON_HOST_H_ 6 #define CHROME_RENDERER_PEPPER_PEPPER_EXTENSIONS_COMMON_HOST_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 56
57 int32_t OnPost(ppapi::host::HostMessageContext* context, 57 int32_t OnPost(ppapi::host::HostMessageContext* context,
58 const std::string& request_name, 58 const std::string& request_name,
59 const base::ListValue& args); 59 const base::ListValue& args);
60 60
61 int32_t OnCall(ppapi::host::HostMessageContext* context, 61 int32_t OnCall(ppapi::host::HostMessageContext* context,
62 const std::string& request_name, 62 const std::string& request_name,
63 const base::ListValue& args); 63 const base::ListValue& args);
64 64
65 void OnResponseReceived( 65 void OnResponseReceived(
66 scoped_ptr<ppapi::host::ReplyMessageContext> response_context, 66 const ppapi::host::ReplyMessageContext& reply_context,
67 bool success, 67 bool success,
68 const base::ListValue& response, 68 const base::ListValue& response,
69 const std::string& error); 69 const std::string& error);
70 70
71 // Non-owning pointer. 71 // Non-owning pointer.
72 content::RendererPpapiHost* renderer_ppapi_host_; 72 content::RendererPpapiHost* renderer_ppapi_host_;
73 // Non-owning pointer. 73 // Non-owning pointer.
74 extensions::PepperRequestProxy* pepper_request_proxy_; 74 extensions::PepperRequestProxy* pepper_request_proxy_;
75 75
76 base::WeakPtrFactory<PepperExtensionsCommonHost> weak_factory_; 76 base::WeakPtrFactory<PepperExtensionsCommonHost> weak_factory_;
77 77
78 DISALLOW_COPY_AND_ASSIGN(PepperExtensionsCommonHost); 78 DISALLOW_COPY_AND_ASSIGN(PepperExtensionsCommonHost);
79 }; 79 };
80 80
81 #endif // CHROME_RENDERER_PEPPER_PEPPER_EXTENSIONS_COMMON_HOST_H_ 81 #endif // CHROME_RENDERER_PEPPER_PEPPER_EXTENSIONS_COMMON_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698