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

Side by Side Diff: content/renderer/pepper_plugin_delegate_impl.cc

Issue 9114020: Remove task.h and finish base::Bind() migration. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix typo Created 8 years, 11 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 | « content/renderer/notification_provider.cc ('k') | content/renderer/render_thread_impl.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/renderer/pepper_plugin_delegate_impl.h" 5 #include "content/renderer/pepper_plugin_delegate_impl.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 #include <queue> 8 #include <queue>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/command_line.h" 12 #include "base/command_line.h"
13 #include "base/file_path.h" 13 #include "base/file_path.h"
14 #include "base/file_util_proxy.h" 14 #include "base/file_util_proxy.h"
15 #include "base/logging.h" 15 #include "base/logging.h"
16 #include "base/memory/scoped_ptr.h" 16 #include "base/memory/scoped_ptr.h"
17 #include "base/memory/weak_ptr.h"
17 #include "base/string_split.h" 18 #include "base/string_split.h"
18 #include "base/sync_socket.h" 19 #include "base/sync_socket.h"
19 #include "base/task.h"
20 #include "base/time.h" 20 #include "base/time.h"
21 #include "content/common/child_process.h" 21 #include "content/common/child_process.h"
22 #include "content/common/child_process_messages.h" 22 #include "content/common/child_process_messages.h"
23 #include "content/common/child_thread.h" 23 #include "content/common/child_thread.h"
24 #include "content/common/file_system/file_system_dispatcher.h" 24 #include "content/common/file_system/file_system_dispatcher.h"
25 #include "content/common/file_system_messages.h" 25 #include "content/common/file_system_messages.h"
26 #include "content/common/media/audio_messages.h" 26 #include "content/common/media/audio_messages.h"
27 #include "content/common/pepper_file_messages.h" 27 #include "content/common/pepper_file_messages.h"
28 #include "content/common/pepper_plugin_registry.h" 28 #include "content/common/pepper_plugin_registry.h"
29 #include "content/common/pepper_messages.h" 29 #include "content/common/pepper_messages.h"
(...skipping 2128 matching lines...) Expand 10 before | Expand all | Expand 10 after
2158 2158
2159 bool PepperPluginDelegateImpl::CanUseSocketAPIs() { 2159 bool PepperPluginDelegateImpl::CanUseSocketAPIs() {
2160 WebView* webview = render_view_->webview(); 2160 WebView* webview = render_view_->webview();
2161 WebFrame* main_frame = webview ? webview->mainFrame() : NULL; 2161 WebFrame* main_frame = webview ? webview->mainFrame() : NULL;
2162 GURL url(main_frame ? GURL(main_frame->document().url()) : GURL()); 2162 GURL url(main_frame ? GURL(main_frame->document().url()) : GURL());
2163 if (!url.is_valid()) 2163 if (!url.is_valid())
2164 return false; 2164 return false;
2165 2165
2166 return content::GetContentClient()->renderer()->AllowSocketAPI(url); 2166 return content::GetContentClient()->renderer()->AllowSocketAPI(url);
2167 } 2167 }
OLDNEW
« no previous file with comments | « content/renderer/notification_provider.cc ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698