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

Side by Side Diff: content/child/child_thread_impl.h

Issue 1227303002: Set listener task runner before connect channel. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix trybot error. Created 5 years, 5 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
« no previous file with comments | « no previous file | content/child/child_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) 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_CHILD_CHILD_THREAD_IMPL_H_ 5 #ifndef CONTENT_CHILD_CHILD_THREAD_IMPL_H_
6 #define CONTENT_CHILD_CHILD_THREAD_IMPL_H_ 6 #define CONTENT_CHILD_CHILD_THREAD_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 303
304 struct ChildThreadImpl::Options { 304 struct ChildThreadImpl::Options {
305 ~Options(); 305 ~Options();
306 306
307 class Builder; 307 class Builder;
308 308
309 std::string channel_name; 309 std::string channel_name;
310 bool use_mojo_channel; 310 bool use_mojo_channel;
311 scoped_refptr<base::SequencedTaskRunner> browser_process_io_runner; 311 scoped_refptr<base::SequencedTaskRunner> browser_process_io_runner;
312 std::vector<IPC::MessageFilter*> startup_filters; 312 std::vector<IPC::MessageFilter*> startup_filters;
313 scoped_refptr<base::SingleThreadTaskRunner> listener_task_runner;
313 314
314 private: 315 private:
315 Options(); 316 Options();
316 }; 317 };
317 318
318 class ChildThreadImpl::Options::Builder { 319 class ChildThreadImpl::Options::Builder {
319 public: 320 public:
320 Builder(); 321 Builder();
321 322
322 Builder& InBrowserProcess(const InProcessChildThreadParams& params); 323 Builder& InBrowserProcess(const InProcessChildThreadParams& params);
323 Builder& UseMojoChannel(bool use_mojo_channel); 324 Builder& UseMojoChannel(bool use_mojo_channel);
324 Builder& WithChannelName(const std::string& channel_name); 325 Builder& WithChannelName(const std::string& channel_name);
325 Builder& AddStartupFilter(IPC::MessageFilter* filter); 326 Builder& AddStartupFilter(IPC::MessageFilter* filter);
327 Builder& ListenerTaskRunner(
328 scoped_refptr<base::SingleThreadTaskRunner> task_runner);
326 329
327 Options Build(); 330 Options Build();
328 331
329 private: 332 private:
330 struct Options options_; 333 struct Options options_;
331 334
332 DISALLOW_COPY_AND_ASSIGN(Builder); 335 DISALLOW_COPY_AND_ASSIGN(Builder);
333 }; 336 };
334 337
335 } // namespace content 338 } // namespace content
336 339
337 #endif // CONTENT_CHILD_CHILD_THREAD_IMPL_H_ 340 #endif // CONTENT_CHILD_CHILD_THREAD_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/child/child_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698