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

Side by Side Diff: ppapi/proxy/ppb_testing_proxy.h

Issue 1088763002: Plugin Power Saver: Add comprehensive browser tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@0260-plugins-overhaul-prerender-tests
Patch Set: make a separate power saver test plugin Created 5 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
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 #ifndef PPAPI_PROXY_PPB_TESTING_PROXY_H_ 5 #ifndef PPAPI_PROXY_PPB_TESTING_PROXY_H_
6 #define PPAPI_PROXY_PPB_TESTING_PROXY_H_ 6 #define PPAPI_PROXY_PPB_TESTING_PROXY_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "ppapi/c/pp_instance.h" 9 #include "ppapi/c/pp_instance.h"
10 #include "ppapi/c/pp_resource.h" 10 #include "ppapi/c/pp_resource.h"
(...skipping 21 matching lines...) Expand all
32 32
33 private: 33 private:
34 // Message handlers. 34 // Message handlers.
35 void OnMsgReadImageData(const ppapi::HostResource& device_context_2d, 35 void OnMsgReadImageData(const ppapi::HostResource& device_context_2d,
36 const ppapi::HostResource& image, 36 const ppapi::HostResource& image,
37 const PP_Point& top_left, 37 const PP_Point& top_left,
38 PP_Bool* result); 38 PP_Bool* result);
39 void OnMsgRunMessageLoop(PP_Instance instance); 39 void OnMsgRunMessageLoop(PP_Instance instance);
40 void OnMsgQuitMessageLoop(PP_Instance instance); 40 void OnMsgQuitMessageLoop(PP_Instance instance);
41 void OnMsgGetLiveObjectsForInstance(PP_Instance instance, uint32_t* result); 41 void OnMsgGetLiveObjectsForInstance(PP_Instance instance, uint32_t* result);
42 void OnMsgIsPeripheral(PP_Instance instance, PP_Bool* result);
42 void OnMsgSimulateInputEvent(PP_Instance instance, 43 void OnMsgSimulateInputEvent(PP_Instance instance,
43 const ppapi::InputEventData& input_event); 44 const ppapi::InputEventData& input_event);
44 void OnMsgSetMinimumArrayBufferSizeForShmem(uint32_t threshold); 45 void OnMsgSetMinimumArrayBufferSizeForShmem(uint32_t threshold);
45 46
46 // When this proxy is in the host side, this value caches the interface 47 // When this proxy is in the host side, this value caches the interface
47 // pointer so we don't have to retrieve it from the dispatcher each time. 48 // pointer so we don't have to retrieve it from the dispatcher each time.
48 // In the plugin, this value is always NULL. 49 // In the plugin, this value is always NULL.
49 const PPB_Testing_Private* ppb_testing_impl_; 50 const PPB_Testing_Private* ppb_testing_impl_;
50 51
51 DISALLOW_COPY_AND_ASSIGN(PPB_Testing_Proxy); 52 DISALLOW_COPY_AND_ASSIGN(PPB_Testing_Proxy);
52 }; 53 };
53 54
54 } // namespace proxy 55 } // namespace proxy
55 } // namespace ppapi 56 } // namespace ppapi
56 57
57 #endif // PPAPI_PROXY_PPB_TESTING_PROXY_H_ 58 #endif // PPAPI_PROXY_PPB_TESTING_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698