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

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

Issue 810583002: Teach CrOS's OfflineResourceThrottle about ServiceWorkers so it know longer presents its offline in… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
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_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_ 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_ 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 ServiceWorkerProcessManager* process_manager() { 65 ServiceWorkerProcessManager* process_manager() {
66 return process_manager_.get(); 66 return process_manager_.get();
67 } 67 }
68 68
69 // ServiceWorkerContext implementation: 69 // ServiceWorkerContext implementation:
70 void RegisterServiceWorker(const GURL& pattern, 70 void RegisterServiceWorker(const GURL& pattern,
71 const GURL& script_url, 71 const GURL& script_url,
72 const ResultCallback& continuation) override; 72 const ResultCallback& continuation) override;
73 void UnregisterServiceWorker(const GURL& pattern, 73 void UnregisterServiceWorker(const GURL& pattern,
74 const ResultCallback& continuation) override; 74 const ResultCallback& continuation) override;
75 void CanHandleMainResourceOffline(
76 const GURL& url,
77 const GURL& first_party,
78 const net::CompletionCallback& callback) override;
75 void GetAllOriginsInfo(const GetUsageInfoCallback& callback) override; 79 void GetAllOriginsInfo(const GetUsageInfoCallback& callback) override;
76 void DeleteForOrigin(const GURL& origin_url) override; 80 void DeleteForOrigin(const GURL& origin_url) override;
77 81
78 // DeleteForOrigin with completion callback. Does not exit early, and returns 82 // DeleteForOrigin with completion callback. Does not exit early, and returns
79 // false if one or more of the deletions fail. 83 // false if one or more of the deletions fail.
80 virtual void DeleteForOrigin(const GURL& origin_url, 84 virtual void DeleteForOrigin(const GURL& origin_url,
81 const ResultCallback& done); 85 const ResultCallback& done);
82 86
83 void AddObserver(ServiceWorkerContextObserver* observer); 87 void AddObserver(ServiceWorkerContextObserver* observer);
84 void RemoveObserver(ServiceWorkerContextObserver* observer); 88 void RemoveObserver(ServiceWorkerContextObserver* observer);
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 // Cleared in Shutdown(): 128 // Cleared in Shutdown():
125 scoped_ptr<ServiceWorkerContextCore> context_core_; 129 scoped_ptr<ServiceWorkerContextCore> context_core_;
126 130
127 // Initialized in Init(); true if the user data directory is empty. 131 // Initialized in Init(); true if the user data directory is empty.
128 bool is_incognito_; 132 bool is_incognito_;
129 }; 133 };
130 134
131 } // namespace content 135 } // namespace content
132 136
133 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_ 137 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698