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

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

Issue 14307011: ppapi: Remove use of ALLOW_THIS_IN_INITIALIZER_LIST. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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_image_data_proxy.cc ('k') | ppapi/proxy/ppb_url_loader_proxy.cc » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "ppapi/proxy/ppb_instance_proxy.h" 5 #include "ppapi/proxy/ppb_instance_proxy.h"
6 6
7 #include "base/memory/ref_counted.h" 7 #include "base/memory/ref_counted.h"
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 #include "ppapi/c/pp_errors.h" 9 #include "ppapi/c/pp_errors.h"
10 #include "ppapi/c/pp_time.h" 10 #include "ppapi/c/pp_time.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 return; 77 return;
78 proxy->OnMessageReceived(PpapiMsg_PPPTextInput_RequestSurroundingText( 78 proxy->OnMessageReceived(PpapiMsg_PPPTextInput_RequestSurroundingText(
79 API_ID_PPP_TEXT_INPUT, instance, 79 API_ID_PPP_TEXT_INPUT, instance,
80 PPB_Instance_Shared::kExtraCharsForTextInput)); 80 PPB_Instance_Shared::kExtraCharsForTextInput));
81 } 81 }
82 82
83 } // namespace 83 } // namespace
84 84
85 PPB_Instance_Proxy::PPB_Instance_Proxy(Dispatcher* dispatcher) 85 PPB_Instance_Proxy::PPB_Instance_Proxy(Dispatcher* dispatcher)
86 : InterfaceProxy(dispatcher), 86 : InterfaceProxy(dispatcher),
87 callback_factory_(ALLOW_THIS_IN_INITIALIZER_LIST(this)) { 87 callback_factory_(this) {
88 } 88 }
89 89
90 PPB_Instance_Proxy::~PPB_Instance_Proxy() { 90 PPB_Instance_Proxy::~PPB_Instance_Proxy() {
91 } 91 }
92 92
93 // static 93 // static
94 const InterfaceProxy::Info* PPB_Instance_Proxy::GetInfoPrivate() { 94 const InterfaceProxy::Info* PPB_Instance_Proxy::GetInfoPrivate() {
95 static const Info info = { 95 static const Info info = {
96 ppapi::thunk::GetPPB_Instance_Private_0_1_Thunk(), 96 ppapi::thunk::GetPPB_Instance_Private_0_1_Thunk(),
97 PPB_INSTANCE_PRIVATE_INTERFACE_0_1, 97 PPB_INSTANCE_PRIVATE_INTERFACE_0_1,
(...skipping 1144 matching lines...) Expand 10 before | Expand all | Expand 10 after
1242 PP_Instance instance) { 1242 PP_Instance instance) {
1243 InstanceData* data = static_cast<PluginDispatcher*>(dispatcher())-> 1243 InstanceData* data = static_cast<PluginDispatcher*>(dispatcher())->
1244 GetInstanceData(instance); 1244 GetInstanceData(instance);
1245 if (!data) 1245 if (!data)
1246 return; // Instance was probably deleted. 1246 return; // Instance was probably deleted.
1247 data->should_do_request_surrounding_text = false; 1247 data->should_do_request_surrounding_text = false;
1248 } 1248 }
1249 1249
1250 } // namespace proxy 1250 } // namespace proxy
1251 } // namespace ppapi 1251 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/proxy/ppb_image_data_proxy.cc ('k') | ppapi/proxy/ppb_url_loader_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698