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

Side by Side Diff: content/ppapi_plugin/broker_process_dispatcher.h

Issue 12208057: Add explicit base to FilePath. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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) 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 CONTENT_PPAPI_PLUGIN_BROKER_PROCESS_DISPATCHER_H_ 5 #ifndef CONTENT_PPAPI_PLUGIN_BROKER_PROCESS_DISPATCHER_H_
6 #define CONTENT_PPAPI_PLUGIN_BROKER_PROCESS_DISPATCHER_H_ 6 #define CONTENT_PPAPI_PLUGIN_BROKER_PROCESS_DISPATCHER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "ppapi/c/ppp.h" 10 #include "ppapi/c/ppp.h"
(...skipping 17 matching lines...) Expand all
28 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; 28 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
29 29
30 void OnGetPermissionSettingsCompleted( 30 void OnGetPermissionSettingsCompleted(
31 uint32 request_id, 31 uint32 request_id,
32 bool success, 32 bool success,
33 PP_Flash_BrowserOperations_Permission default_permission, 33 PP_Flash_BrowserOperations_Permission default_permission,
34 const ppapi::FlashSiteSettings& sites); 34 const ppapi::FlashSiteSettings& sites);
35 35
36 private: 36 private:
37 void OnGetSitesWithData(uint32 request_id, 37 void OnGetSitesWithData(uint32 request_id,
38 const FilePath& plugin_data_path); 38 const base::FilePath& plugin_data_path);
39 void OnClearSiteData(uint32 request_id, 39 void OnClearSiteData(uint32 request_id,
40 const FilePath& plugin_data_path, 40 const base::FilePath& plugin_data_path,
41 const std::string& site, 41 const std::string& site,
42 uint64 flags, 42 uint64 flags,
43 uint64 max_age); 43 uint64 max_age);
44 void OnDeauthorizeContentLicenses(uint32 request_id, 44 void OnDeauthorizeContentLicenses(uint32 request_id,
45 const FilePath& plugin_data_path); 45 const base::FilePath& plugin_data_path);
46 void OnGetPermissionSettings( 46 void OnGetPermissionSettings(
47 uint32 request_id, 47 uint32 request_id,
48 const FilePath& plugin_data_path, 48 const base::FilePath& plugin_data_path,
49 PP_Flash_BrowserOperations_SettingType setting_type); 49 PP_Flash_BrowserOperations_SettingType setting_type);
50 void OnSetDefaultPermission( 50 void OnSetDefaultPermission(
51 uint32 request_id, 51 uint32 request_id,
52 const FilePath& plugin_data_path, 52 const base::FilePath& plugin_data_path,
53 PP_Flash_BrowserOperations_SettingType setting_type, 53 PP_Flash_BrowserOperations_SettingType setting_type,
54 PP_Flash_BrowserOperations_Permission permission, 54 PP_Flash_BrowserOperations_Permission permission,
55 bool clear_site_specific); 55 bool clear_site_specific);
56 void OnSetSitePermission( 56 void OnSetSitePermission(
57 uint32 request_id, 57 uint32 request_id,
58 const FilePath& plugin_data_path, 58 const base::FilePath& plugin_data_path,
59 PP_Flash_BrowserOperations_SettingType setting_type, 59 PP_Flash_BrowserOperations_SettingType setting_type,
60 const ppapi::FlashSiteSettings& sites); 60 const ppapi::FlashSiteSettings& sites);
61 61
62 // Returns a list of sites that have data stored. 62 // Returns a list of sites that have data stored.
63 void GetSitesWithData(const FilePath& plugin_data_path, 63 void GetSitesWithData(const base::FilePath& plugin_data_path,
64 std::vector<std::string>* sites); 64 std::vector<std::string>* sites);
65 65
66 // Requests that the plugin clear data, returning true on success. 66 // Requests that the plugin clear data, returning true on success.
67 bool ClearSiteData(const FilePath& plugin_data_path, 67 bool ClearSiteData(const base::FilePath& plugin_data_path,
68 const std::string& site, 68 const std::string& site,
69 uint64 flags, 69 uint64 flags,
70 uint64 max_age); 70 uint64 max_age);
71 71
72 bool DeauthorizeContentLicenses(const FilePath& plugin_data_path); 72 bool DeauthorizeContentLicenses(const base::FilePath& plugin_data_path);
73 bool SetDefaultPermission(const FilePath& plugin_data_path, 73 bool SetDefaultPermission(const base::FilePath& plugin_data_path,
74 PP_Flash_BrowserOperations_SettingType setting_type, 74 PP_Flash_BrowserOperations_SettingType setting_type,
75 PP_Flash_BrowserOperations_Permission permission, 75 PP_Flash_BrowserOperations_Permission permission,
76 bool clear_site_specific); 76 bool clear_site_specific);
77 bool SetSitePermission(const FilePath& plugin_data_path, 77 bool SetSitePermission(const base::FilePath& plugin_data_path,
78 PP_Flash_BrowserOperations_SettingType setting_type, 78 PP_Flash_BrowserOperations_SettingType setting_type,
79 const ppapi::FlashSiteSettings& sites); 79 const ppapi::FlashSiteSettings& sites);
80 80
81 PP_GetInterface_Func get_plugin_interface_; 81 PP_GetInterface_Func get_plugin_interface_;
82 82
83 const PPP_Flash_BrowserOperations_1_3* flash_browser_operations_1_3_; 83 const PPP_Flash_BrowserOperations_1_3* flash_browser_operations_1_3_;
84 const PPP_Flash_BrowserOperations_1_2* flash_browser_operations_1_2_; 84 const PPP_Flash_BrowserOperations_1_2* flash_browser_operations_1_2_;
85 const PPP_Flash_BrowserOperations_1_0* flash_browser_operations_1_0_; 85 const PPP_Flash_BrowserOperations_1_0* flash_browser_operations_1_0_;
86 86
87 DISALLOW_COPY_AND_ASSIGN(BrokerProcessDispatcher); 87 DISALLOW_COPY_AND_ASSIGN(BrokerProcessDispatcher);
88 }; 88 };
89 89
90 } // namespace content 90 } // namespace content
91 91
92 #endif // CONTENT_PPAPI_PLUGIN_BROKER_PROCESS_DISPATCHER_H_ 92 #endif // CONTENT_PPAPI_PLUGIN_BROKER_PROCESS_DISPATCHER_H_
OLDNEW
« no previous file with comments | « content/plugin/webplugin_delegate_stub.cc ('k') | content/ppapi_plugin/broker_process_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698