| 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/child/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 content { |
| 17 namespace { | 17 namespace { |
| 18 | 18 |
| 19 // How long we wait before releasing the broker process. | 19 // How long we wait before releasing the broker process. |
| 20 const int kBrokerReleaseTimeSeconds = 30; | 20 const int kBrokerReleaseTimeSeconds = 30; |
| 21 | 21 |
| (...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 PP_Bool result = flash_browser_operations_1_2_->SetSitePermission( | 323 PP_Bool result = flash_browser_operations_1_2_->SetSitePermission( |
| 324 data_str.c_str(), setting_type, sites.size(), site_array.get()); | 324 data_str.c_str(), setting_type, sites.size(), site_array.get()); |
| 325 | 325 |
| 326 return PP_ToBool(result); | 326 return PP_ToBool(result); |
| 327 } | 327 } |
| 328 | 328 |
| 329 return false; | 329 return false; |
| 330 } | 330 } |
| 331 | 331 |
| 332 } // namespace content | 332 } // namespace content |
| OLD | NEW |