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

Side by Side Diff: webkit/common/appcache/appcache_interfaces.h

Issue 164933002: Expose details for appcache error events [Chromium] (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: re-up Created 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 WEBKIT_COMMON_APPCACHE_APPCACHE_INTERFACES_H_ 5 #ifndef WEBKIT_COMMON_APPCACHE_APPCACHE_INTERFACES_H_
6 #define WEBKIT_COMMON_APPCACHE_APPCACHE_INTERFACES_H_ 6 #define WEBKIT_COMMON_APPCACHE_APPCACHE_INTERFACES_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 virtual void OnCacheSelected( 124 virtual void OnCacheSelected(
125 int host_id, const appcache::AppCacheInfo& info) = 0; 125 int host_id, const appcache::AppCacheInfo& info) = 0;
126 virtual void OnStatusChanged(const std::vector<int>& host_ids, 126 virtual void OnStatusChanged(const std::vector<int>& host_ids,
127 Status status) = 0; 127 Status status) = 0;
128 virtual void OnEventRaised(const std::vector<int>& host_ids, 128 virtual void OnEventRaised(const std::vector<int>& host_ids,
129 EventID event_id) = 0; 129 EventID event_id) = 0;
130 virtual void OnProgressEventRaised(const std::vector<int>& host_ids, 130 virtual void OnProgressEventRaised(const std::vector<int>& host_ids,
131 const GURL& url, 131 const GURL& url,
132 int num_total, int num_complete) = 0; 132 int num_total, int num_complete) = 0;
133 virtual void OnErrorEventRaised(const std::vector<int>& host_ids, 133 virtual void OnErrorEventRaised(const std::vector<int>& host_ids,
134 const std::string& message) = 0; 134 const std::string& message,
135 const std::string& reason,
136 const GURL& url,
137 int status) = 0;
135 virtual void OnContentBlocked(int host_id, 138 virtual void OnContentBlocked(int host_id,
136 const GURL& manifest_url) = 0; 139 const GURL& manifest_url) = 0;
137 virtual void OnLogMessage(int host_id, LogLevel log_level, 140 virtual void OnLogMessage(int host_id, LogLevel log_level,
138 const std::string& message) = 0; 141 const std::string& message) = 0;
139 virtual ~AppCacheFrontend() {} 142 virtual ~AppCacheFrontend() {}
140 }; 143 };
141 144
142 // Interface used by frontend (renderer) to talk to backend (browser-process). 145 // Interface used by frontend (renderer) to talk to backend (browser-process).
143 class WEBKIT_STORAGE_COMMON_EXPORT AppCacheBackend { 146 class WEBKIT_STORAGE_COMMON_EXPORT AppCacheBackend {
144 public: 147 public:
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 WEBKIT_STORAGE_COMMON_EXPORT bool IsMethodSupported(const std::string& method); 187 WEBKIT_STORAGE_COMMON_EXPORT bool IsMethodSupported(const std::string& method);
185 WEBKIT_STORAGE_COMMON_EXPORT bool IsSchemeAndMethodSupported( 188 WEBKIT_STORAGE_COMMON_EXPORT bool IsSchemeAndMethodSupported(
186 const net::URLRequest* request); 189 const net::URLRequest* request);
187 190
188 WEBKIT_STORAGE_COMMON_EXPORT extern const base::FilePath::CharType 191 WEBKIT_STORAGE_COMMON_EXPORT extern const base::FilePath::CharType
189 kAppCacheDatabaseName[]; 192 kAppCacheDatabaseName[];
190 193
191 } // namespace 194 } // namespace
192 195
193 #endif // WEBKIT_COMMON_APPCACHE_APPCACHE_INTERFACES_H_ 196 #endif // WEBKIT_COMMON_APPCACHE_APPCACHE_INTERFACES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698