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

Side by Side Diff: content/browser/plugin_process_host.cc

Issue 1091093006: Update {virtual,override} to follow C++11 style in content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Back out some webrtc files. 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 #include "content/browser/plugin_process_host.h" 5 #include "content/browser/plugin_process_host.h"
6 6
7 #if defined(OS_WIN) 7 #if defined(OS_WIN)
8 #include <windows.h> 8 #include <windows.h>
9 #elif defined(OS_POSIX) 9 #elif defined(OS_POSIX)
10 #include <utility> // for pair<> 10 #include <utility> // for pair<>
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 public: 99 public:
100 explicit PluginSandboxedProcessLauncherDelegate(ChildProcessHost* host) 100 explicit PluginSandboxedProcessLauncherDelegate(ChildProcessHost* host)
101 #if defined(OS_POSIX) 101 #if defined(OS_POSIX)
102 : ipc_fd_(host->TakeClientFileDescriptor()) 102 : ipc_fd_(host->TakeClientFileDescriptor())
103 #endif // OS_POSIX 103 #endif // OS_POSIX
104 {} 104 {}
105 105
106 ~PluginSandboxedProcessLauncherDelegate() override {} 106 ~PluginSandboxedProcessLauncherDelegate() override {}
107 107
108 #if defined(OS_WIN) 108 #if defined(OS_WIN)
109 virtual bool ShouldSandbox() override { 109 bool ShouldSandbox() override {
110 return false; 110 return false;
111 } 111 }
112 112
113 #elif defined(OS_POSIX) 113 #elif defined(OS_POSIX)
114 base::ScopedFD TakeIpcFd() override { return ipc_fd_.Pass(); } 114 base::ScopedFD TakeIpcFd() override { return ipc_fd_.Pass(); }
115 #endif // OS_WIN 115 #endif // OS_WIN
116 116
117 private: 117 private:
118 #if defined(OS_POSIX) 118 #if defined(OS_POSIX)
119 base::ScopedFD ipc_fd_; 119 base::ScopedFD ipc_fd_;
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 427
428 void PluginProcessHost::GetContexts(const ResourceHostMsg_Request& request, 428 void PluginProcessHost::GetContexts(const ResourceHostMsg_Request& request,
429 ResourceContext** resource_context, 429 ResourceContext** resource_context,
430 net::URLRequestContext** request_context) { 430 net::URLRequestContext** request_context) {
431 *resource_context = 431 *resource_context =
432 resource_context_map_[request.origin_pid].resource_context; 432 resource_context_map_[request.origin_pid].resource_context;
433 *request_context = (*resource_context)->GetRequestContext(); 433 *request_context = (*resource_context)->GetRequestContext();
434 } 434 }
435 435
436 } // namespace content 436 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/indexed_db/mock_indexed_db_factory.h ('k') | content/browser/plugin_service_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698