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

Side by Side Diff: content/browser/service_worker/embedded_worker_instance.cc

Issue 2589663003: mojo:: Rename mojo::GetProxy() to mojo::MakeRequest() (Closed)
Patch Set: Rebase Created 4 years 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/service_worker/embedded_worker_instance.h" 5 #include "content/browser/service_worker/embedded_worker_instance.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind_helpers.h" 9 #include "base/bind_helpers.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 for (auto& observer : listener_list_) 473 for (auto& observer : listener_list_)
474 observer.OnStarting(); 474 observer.OnStarting();
475 475
476 params->embedded_worker_id = embedded_worker_id_; 476 params->embedded_worker_id = embedded_worker_id_;
477 params->worker_devtools_agent_route_id = MSG_ROUTING_NONE; 477 params->worker_devtools_agent_route_id = MSG_ROUTING_NONE;
478 params->wait_for_debugger = false; 478 params->wait_for_debugger = false;
479 params->settings.v8_cache_options = GetV8CacheOptions(); 479 params->settings.v8_cache_options = GetV8CacheOptions();
480 480
481 mojom::EmbeddedWorkerInstanceClientRequest request; 481 mojom::EmbeddedWorkerInstanceClientRequest request;
482 if (ServiceWorkerUtils::IsMojoForServiceWorkerEnabled()) { 482 if (ServiceWorkerUtils::IsMojoForServiceWorkerEnabled()) {
483 request = mojo::GetProxy(&client_); 483 request = mojo::MakeRequest(&client_);
484 client_.set_connection_error_handler( 484 client_.set_connection_error_handler(
485 base::Bind(&CallDetach, base::Unretained(this))); 485 base::Bind(&CallDetach, base::Unretained(this)));
486 } 486 }
487 487
488 pending_dispatcher_request_ = std::move(dispatcher_request); 488 pending_dispatcher_request_ = std::move(dispatcher_request);
489 489
490 inflight_start_task_.reset( 490 inflight_start_task_.reset(
491 new StartTask(this, params->script_url, std::move(request))); 491 new StartTask(this, params->script_url, std::move(request)));
492 inflight_start_task_->Start(std::move(params), callback); 492 inflight_start_task_->Start(std::move(params), callback);
493 } 493 }
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after
942 case SCRIPT_READ_FINISHED: 942 case SCRIPT_READ_FINISHED:
943 return "Script read finished"; 943 return "Script read finished";
944 case STARTING_PHASE_MAX_VALUE: 944 case STARTING_PHASE_MAX_VALUE:
945 NOTREACHED(); 945 NOTREACHED();
946 } 946 }
947 NOTREACHED() << phase; 947 NOTREACHED() << phase;
948 return std::string(); 948 return std::string();
949 } 949 }
950 950
951 } // namespace content 951 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698