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

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

Issue 2419723002: Move services/shell to services/service_manager (Closed)
Patch Set: rebase Created 4 years, 2 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 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 11 matching lines...) Expand all
22 #include "content/common/service_worker/embedded_worker_setup.mojom.h" 22 #include "content/common/service_worker/embedded_worker_setup.mojom.h"
23 #include "content/common/service_worker/embedded_worker_start_params.h" 23 #include "content/common/service_worker/embedded_worker_start_params.h"
24 #include "content/common/service_worker/service_worker_types.h" 24 #include "content/common/service_worker/service_worker_types.h"
25 #include "content/common/service_worker/service_worker_utils.h" 25 #include "content/common/service_worker/service_worker_utils.h"
26 #include "content/public/browser/browser_thread.h" 26 #include "content/public/browser/browser_thread.h"
27 #include "content/public/browser/content_browser_client.h" 27 #include "content/public/browser/content_browser_client.h"
28 #include "content/public/browser/render_process_host.h" 28 #include "content/public/browser/render_process_host.h"
29 #include "content/public/common/child_process_host.h" 29 #include "content/public/common/child_process_host.h"
30 #include "content/public/common/content_switches.h" 30 #include "content/public/common/content_switches.h"
31 #include "ipc/ipc_message.h" 31 #include "ipc/ipc_message.h"
32 #include "services/shell/public/cpp/interface_provider.h" 32 #include "services/service_manager/public/cpp/interface_provider.h"
33 #include "services/shell/public/cpp/interface_registry.h" 33 #include "services/service_manager/public/cpp/interface_registry.h"
34 #include "url/gurl.h" 34 #include "url/gurl.h"
35 35
36 namespace content { 36 namespace content {
37 37
38 namespace { 38 namespace {
39 39
40 // When a service worker version's failure count exceeds 40 // When a service worker version's failure count exceeds
41 // |kMaxSameProcessFailureCount|, the embedded worker is forced to start in a 41 // |kMaxSameProcessFailureCount|, the embedded worker is forced to start in a
42 // new process. 42 // new process.
43 const int kMaxSameProcessFailureCount = 2; 43 const int kMaxSameProcessFailureCount = 2;
(...skipping 881 matching lines...) Expand 10 before | Expand all | Expand 10 after
925 case SCRIPT_READ_FINISHED: 925 case SCRIPT_READ_FINISHED:
926 return "Script read finished"; 926 return "Script read finished";
927 case STARTING_PHASE_MAX_VALUE: 927 case STARTING_PHASE_MAX_VALUE:
928 NOTREACHED(); 928 NOTREACHED();
929 } 929 }
930 NOTREACHED() << phase; 930 NOTREACHED() << phase;
931 return std::string(); 931 return std::string();
932 } 932 }
933 933
934 } // namespace content 934 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698