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

Unified Diff: content/child/appcache/web_application_cache_host_impl.h

Issue 22410007: Move appcache_frontend_impl.* to content/renderer/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: content/child/appcache/web_application_cache_host_impl.h
diff --git a/webkit/renderer/appcache/web_application_cache_host_impl.h b/content/child/appcache/web_application_cache_host_impl.h
similarity index 81%
rename from webkit/renderer/appcache/web_application_cache_host_impl.h
rename to content/child/appcache/web_application_cache_host_impl.h
index 752ad83de65034b4fe06ab2e54ab1925e973c4ea..e3f07d7400e1a77cabb8bba6d0ec18c585336f83 100644
--- a/webkit/renderer/appcache/web_application_cache_host_impl.h
+++ b/content/child/appcache/web_application_cache_host_impl.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef WEBKIT_RENDERER_APPCACHE_WEB_APPLICATION_CACHE_HOST_IMPL_H_
-#define WEBKIT_RENDERER_APPCACHE_WEB_APPLICATION_CACHE_HOST_IMPL_H_
+#ifndef CONTENT_CHILD_APPCACHE_WEB_APPLICATION_CACHE_HOST_IMPL_H_
+#define CONTENT_CHILD_APPCACHE_WEB_APPLICATION_CACHE_HOST_IMPL_H_
#include <string>
@@ -12,15 +12,14 @@
#include "third_party/WebKit/public/web/WebApplicationCacheHostClient.h"
#include "url/gurl.h"
#include "webkit/common/appcache/appcache_interfaces.h"
-#include "webkit/renderer/webkit_storage_renderer_export.h"
namespace WebKit {
class WebFrame;
}
-namespace appcache {
+namespace content {
-class WEBKIT_STORAGE_RENDERER_EXPORT WebApplicationCacheHostImpl
+class WebApplicationCacheHostImpl
: NON_EXPORTED_BASE(public WebKit::WebApplicationCacheHost) {
public:
// Returns the host having given id or NULL if there is no such host.
@@ -30,11 +29,11 @@ class WEBKIT_STORAGE_RENDERER_EXPORT WebApplicationCacheHostImpl
static WebApplicationCacheHostImpl* FromFrame(const WebKit::WebFrame* frame);
WebApplicationCacheHostImpl(WebKit::WebApplicationCacheHostClient* client,
- AppCacheBackend* backend);
+ appcache::AppCacheBackend* backend);
virtual ~WebApplicationCacheHostImpl();
int host_id() const { return host_id_; }
- AppCacheBackend* backend() const { return backend_; }
+ appcache::AppCacheBackend* backend() const { return backend_; }
WebKit::WebApplicationCacheHostClient* client() const { return client_; }
virtual void OnCacheSelected(const appcache::AppCacheInfo& info);
@@ -42,10 +41,11 @@ class WEBKIT_STORAGE_RENDERER_EXPORT WebApplicationCacheHostImpl
void OnEventRaised(appcache::EventID);
void OnProgressEventRaised(const GURL& url, int num_total, int num_complete);
void OnErrorEventRaised(const std::string& message);
- virtual void OnLogMessage(LogLevel log_level, const std::string& message) {}
+ virtual void OnLogMessage(appcache::LogLevel log_level,
+ const std::string& message) {}
virtual void OnContentBlocked(const GURL& manifest_url) {}
- // WebApplicationCacheHost methods
+ // WebKit::WebApplicationCacheHost:
virtual void willStartMainResourceRequest(WebKit::WebURLRequest&,
const WebKit::WebFrame*);
virtual void willStartSubResourceRequest(WebKit::WebURLRequest&);
@@ -68,7 +68,7 @@ class WEBKIT_STORAGE_RENDERER_EXPORT WebApplicationCacheHostImpl
};
WebKit::WebApplicationCacheHostClient* client_;
- AppCacheBackend* backend_;
+ appcache::AppCacheBackend* backend_;
int host_id_;
appcache::Status status_;
WebKit::WebURLResponse document_response_;
@@ -81,6 +81,6 @@ class WEBKIT_STORAGE_RENDERER_EXPORT WebApplicationCacheHostImpl
bool was_select_cache_called_;
};
-} // namespace
+} // namespace content
-#endif // WEBKIT_RENDERER_APPCACHE_WEB_APPLICATION_CACHE_HOST_IMPL_H_
+#endif // CONTENT_CHILD_APPCACHE_WEB_APPLICATION_CACHE_HOST_IMPL_H_
« no previous file with comments | « content/child/appcache/appcache_frontend_impl.cc ('k') | content/child/appcache/web_application_cache_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698