| Index: webkit/renderer/appcache/web_application_cache_host_impl.h
|
| diff --git a/webkit/renderer/appcache/web_application_cache_host_impl.h b/webkit/renderer/appcache/web_application_cache_host_impl.h
|
| deleted file mode 100644
|
| index 752ad83de65034b4fe06ab2e54ab1925e973c4ea..0000000000000000000000000000000000000000
|
| --- a/webkit/renderer/appcache/web_application_cache_host_impl.h
|
| +++ /dev/null
|
| @@ -1,86 +0,0 @@
|
| -// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
| -// 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_
|
| -
|
| -#include <string>
|
| -
|
| -#include "third_party/WebKit/public/platform/WebURLResponse.h"
|
| -#include "third_party/WebKit/public/platform/WebVector.h"
|
| -#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 {
|
| -
|
| -class WEBKIT_STORAGE_RENDERER_EXPORT WebApplicationCacheHostImpl
|
| - : NON_EXPORTED_BASE(public WebKit::WebApplicationCacheHost) {
|
| - public:
|
| - // Returns the host having given id or NULL if there is no such host.
|
| - static WebApplicationCacheHostImpl* FromId(int id);
|
| -
|
| - // Returns the host associated with the current document in frame.
|
| - static WebApplicationCacheHostImpl* FromFrame(const WebKit::WebFrame* frame);
|
| -
|
| - WebApplicationCacheHostImpl(WebKit::WebApplicationCacheHostClient* client,
|
| - AppCacheBackend* backend);
|
| - virtual ~WebApplicationCacheHostImpl();
|
| -
|
| - int host_id() const { return host_id_; }
|
| - AppCacheBackend* backend() const { return backend_; }
|
| - WebKit::WebApplicationCacheHostClient* client() const { return client_; }
|
| -
|
| - virtual void OnCacheSelected(const appcache::AppCacheInfo& info);
|
| - void OnStatusChanged(appcache::Status);
|
| - 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 OnContentBlocked(const GURL& manifest_url) {}
|
| -
|
| - // WebApplicationCacheHost methods
|
| - virtual void willStartMainResourceRequest(WebKit::WebURLRequest&,
|
| - const WebKit::WebFrame*);
|
| - virtual void willStartSubResourceRequest(WebKit::WebURLRequest&);
|
| - virtual void selectCacheWithoutManifest();
|
| - virtual bool selectCacheWithManifest(const WebKit::WebURL& manifestURL);
|
| - virtual void didReceiveResponseForMainResource(const WebKit::WebURLResponse&);
|
| - virtual void didReceiveDataForMainResource(const char* data, int len);
|
| - virtual void didFinishLoadingMainResource(bool success);
|
| - virtual WebKit::WebApplicationCacheHost::Status status();
|
| - virtual bool startUpdate();
|
| - virtual bool swapCache();
|
| - virtual void getResourceList(WebKit::WebVector<ResourceInfo>* resources);
|
| - virtual void getAssociatedCacheInfo(CacheInfo* info);
|
| -
|
| - private:
|
| - enum IsNewMasterEntry {
|
| - MAYBE,
|
| - YES,
|
| - NO
|
| - };
|
| -
|
| - WebKit::WebApplicationCacheHostClient* client_;
|
| - AppCacheBackend* backend_;
|
| - int host_id_;
|
| - appcache::Status status_;
|
| - WebKit::WebURLResponse document_response_;
|
| - GURL document_url_;
|
| - bool is_scheme_supported_;
|
| - bool is_get_method_;
|
| - IsNewMasterEntry is_new_master_entry_;
|
| - appcache::AppCacheInfo cache_info_;
|
| - GURL original_main_resource_url_; // Used to detect redirection.
|
| - bool was_select_cache_called_;
|
| -};
|
| -
|
| -} // namespace
|
| -
|
| -#endif // WEBKIT_RENDERER_APPCACHE_WEB_APPLICATION_CACHE_HOST_IMPL_H_
|
|
|