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

Side by Side Diff: content/browser/service_worker/service_worker_context_watcher.h

Issue 2917643002: PlzNavigate: Fix ServiceWorkerHandler not finding WebContents. (Closed)
Patch Set: Shorter comment. Created 3 years, 6 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WATCHER_H_ 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WATCHER_H_
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WATCHER_H_ 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WATCHER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <unordered_map> 10 #include <unordered_map>
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 base::Time script_response_time, 83 base::Time script_response_time,
84 base::Time script_last_modified) override; 84 base::Time script_last_modified) override;
85 void OnErrorReported(int64_t version_id, 85 void OnErrorReported(int64_t version_id,
86 int process_id, 86 int process_id,
87 int thread_id, 87 int thread_id,
88 const ErrorInfo& info) override; 88 const ErrorInfo& info) override;
89 void OnReportConsoleMessage(int64_t version_id, 89 void OnReportConsoleMessage(int64_t version_id,
90 int process_id, 90 int process_id,
91 int thread_id, 91 int thread_id,
92 const ConsoleMessage& message) override; 92 const ConsoleMessage& message) override;
93 void OnControlleeAdded(int64_t version_id, 93 void OnControlleeAdded(
94 const std::string& uuid, 94 int64_t version_id,
95 int process_id, 95 const std::string& uuid,
96 int route_id, 96 int process_id,
97 ServiceWorkerProviderType type) override; 97 int route_id,
98 const base::Callback<WebContents*(void)>& web_contents_getter,
99 ServiceWorkerProviderType type) override;
98 void OnControlleeRemoved(int64_t version_id, 100 void OnControlleeRemoved(int64_t version_id,
99 const std::string& uuid) override; 101 const std::string& uuid) override;
100 void OnRegistrationStored(int64_t registration_id, 102 void OnRegistrationStored(int64_t registration_id,
101 const GURL& pattern) override; 103 const GURL& pattern) override;
102 void OnRegistrationDeleted(int64_t registration_id, 104 void OnRegistrationDeleted(int64_t registration_id,
103 const GURL& pattern) override; 105 const GURL& pattern) override;
104 106
105 std::unordered_map<int64_t, std::unique_ptr<ServiceWorkerVersionInfo>> 107 std::unordered_map<int64_t, std::unique_ptr<ServiceWorkerVersionInfo>>
106 version_info_map_; 108 version_info_map_;
107 scoped_refptr<ServiceWorkerContextWrapper> context_; 109 scoped_refptr<ServiceWorkerContextWrapper> context_;
108 WorkerRegistrationUpdatedCallback registration_callback_; 110 WorkerRegistrationUpdatedCallback registration_callback_;
109 WorkerVersionUpdatedCallback version_callback_; 111 WorkerVersionUpdatedCallback version_callback_;
110 WorkerErrorReportedCallback error_callback_; 112 WorkerErrorReportedCallback error_callback_;
111 }; 113 };
112 114
113 } // namespace content 115 } // namespace content
114 116
115 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WATCHER_H_ 117 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698