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

Side by Side Diff: content/renderer/service_worker/embedded_worker_dispatcher.h

Issue 1675613002: service worker: use 200 OK for update requests even in the no update case (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: asan and fix win compile? Created 4 years, 10 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 #ifndef CONTENT_RENDERER_SERVICE_WORKER_EMBEDDED_WORKER_DISPATCHER_H_ 5 #ifndef CONTENT_RENDERER_SERVICE_WORKER_EMBEDDED_WORKER_DISPATCHER_H_
6 #define CONTENT_RENDERER_SERVICE_WORKER_EMBEDDED_WORKER_DISPATCHER_H_ 6 #define CONTENT_RENDERER_SERVICE_WORKER_EMBEDDED_WORKER_DISPATCHER_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/id_map.h" 10 #include "base/id_map.h"
(...skipping 16 matching lines...) Expand all
27 // IPC::Listener overrides. 27 // IPC::Listener overrides.
28 bool OnMessageReceived(const IPC::Message& message) override; 28 bool OnMessageReceived(const IPC::Message& message) override;
29 29
30 void WorkerContextDestroyed(int embedded_worker_id); 30 void WorkerContextDestroyed(int embedded_worker_id);
31 31
32 private: 32 private:
33 class WorkerWrapper; 33 class WorkerWrapper;
34 34
35 void OnStartWorker(const EmbeddedWorkerMsg_StartWorker_Params& params); 35 void OnStartWorker(const EmbeddedWorkerMsg_StartWorker_Params& params);
36 void OnStopWorker(int embedded_worker_id); 36 void OnStopWorker(int embedded_worker_id);
37 void OnResumeAfterDownload(int embedded_worker_id);
37 38
38 IDMap<WorkerWrapper, IDMapOwnPointer> workers_; 39 IDMap<WorkerWrapper, IDMapOwnPointer> workers_;
39 std::map<int /* embedded_worker_id */, base::TimeTicks> stop_worker_times_; 40 std::map<int /* embedded_worker_id */, base::TimeTicks> stop_worker_times_;
40 base::WeakPtrFactory<EmbeddedWorkerDispatcher> weak_factory_; 41 base::WeakPtrFactory<EmbeddedWorkerDispatcher> weak_factory_;
41 42
42 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerDispatcher); 43 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerDispatcher);
43 }; 44 };
44 45
45 } // namespace content 46 } // namespace content
46 47
47 #endif // CONTENT_RENDERER_SERVICE_WORKER_EMBEDDED_WORKER_DISPATCHER_H_ 48 #endif // CONTENT_RENDERER_SERVICE_WORKER_EMBEDDED_WORKER_DISPATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698