OLD | NEW |
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 "content/ppapi_plugin/broker_process_dispatcher.h" | 5 #include "content/ppapi_plugin/broker_process_dispatcher.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
11 #include "content/common/child_process.h" | 11 #include "content/common/child_process.h" |
12 #include "ppapi/c/pp_bool.h" | 12 #include "ppapi/c/pp_bool.h" |
13 #include "ppapi/c/private/ppp_flash_browser_operations.h" | 13 #include "ppapi/c/private/ppp_flash_browser_operations.h" |
14 #include "ppapi/proxy/ppapi_messages.h" | 14 #include "ppapi/proxy/ppapi_messages.h" |
15 | 15 |
| 16 namespace content { |
16 namespace { | 17 namespace { |
17 | 18 |
18 // How long we wait before releasing the broker process. | 19 // How long we wait before releasing the broker process. |
19 const int kBrokerReleaseTimeSeconds = 30; | 20 const int kBrokerReleaseTimeSeconds = 30; |
20 | 21 |
21 std::string ConvertPluginDataPath(const FilePath& plugin_data_path) { | 22 std::string ConvertPluginDataPath(const FilePath& plugin_data_path) { |
22 // The string is always 8-bit, convert on Windows. | 23 // The string is always 8-bit, convert on Windows. |
23 #if defined(OS_WIN) | 24 #if defined(OS_WIN) |
24 return WideToUTF8(plugin_data_path.value()); | 25 return WideToUTF8(plugin_data_path.value()); |
25 #else | 26 #else |
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 | 322 |
322 if (flash_browser_operations_1_2_) { | 323 if (flash_browser_operations_1_2_) { |
323 PP_Bool result = flash_browser_operations_1_2_->SetSitePermission( | 324 PP_Bool result = flash_browser_operations_1_2_->SetSitePermission( |
324 data_str.c_str(), setting_type, sites.size(), site_array.get()); | 325 data_str.c_str(), setting_type, sites.size(), site_array.get()); |
325 | 326 |
326 return PP_ToBool(result); | 327 return PP_ToBool(result); |
327 } | 328 } |
328 | 329 |
329 return false; | 330 return false; |
330 } | 331 } |
| 332 |
| 333 } // namespace content |
OLD | NEW |