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

Side by Side Diff: chrome/browser/worker_host/worker_process_host.cc

Issue 6336012: Get rid of RenderViewHostDelegate::BrowserIntegration since it was unnecessar... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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
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 "chrome/browser/worker_host/worker_process_host.h" 5 #include "chrome/browser/worker_host/worker_process_host.h"
6 6
7 #include <set> 7 #include <set>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 // Notifies RenderViewHost that one or more worker objects crashed. 68 // Notifies RenderViewHost that one or more worker objects crashed.
69 class WorkerCrashTask : public Task { 69 class WorkerCrashTask : public Task {
70 public: 70 public:
71 WorkerCrashTask(int render_process_unique_id, int render_view_id) 71 WorkerCrashTask(int render_process_unique_id, int render_view_id)
72 : render_process_unique_id_(render_process_unique_id), 72 : render_process_unique_id_(render_process_unique_id),
73 render_view_id_(render_view_id) { } 73 render_view_id_(render_view_id) { }
74 74
75 void Run() { 75 void Run() {
76 RenderViewHost* host = 76 RenderViewHost* host =
77 RenderViewHost::FromID(render_process_unique_id_, render_view_id_); 77 RenderViewHost::FromID(render_process_unique_id_, render_view_id_);
78 if (host) { 78 if (host)
79 RenderViewHostDelegate::BrowserIntegration* integration_delegate = 79 host->delegate()->WorkerCrashed();
80 host->delegate()->GetBrowserIntegrationDelegate();
81 if (integration_delegate)
82 integration_delegate->OnCrashedWorker();
83 }
84 } 80 }
85 81
86 private: 82 private:
87 int render_process_unique_id_; 83 int render_process_unique_id_;
88 int render_view_id_; 84 int render_view_id_;
89 }; 85 };
90 86
91 WorkerProcessHost::WorkerProcessHost( 87 WorkerProcessHost::WorkerProcessHost(
92 ResourceDispatcherHost* resource_dispatcher_host, 88 ResourceDispatcherHost* resource_dispatcher_host,
93 URLRequestContextGetter* request_context) 89 URLRequestContextGetter* request_context)
(...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after
607 } 603 }
608 } 604 }
609 return false; 605 return false;
610 } 606 }
611 607
612 WorkerProcessHost::WorkerInstance::FilterInfo 608 WorkerProcessHost::WorkerInstance::FilterInfo
613 WorkerProcessHost::WorkerInstance::GetFilter() const { 609 WorkerProcessHost::WorkerInstance::GetFilter() const {
614 DCHECK(NumFilters() == 1); 610 DCHECK(NumFilters() == 1);
615 return *filters_.begin(); 611 return *filters_.begin();
616 } 612 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698