Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / content / child / appcache / appcache_frontend_impl.h
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
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_CHILD_APPCACHE_APPCACHE_FRONTEND_IMPL_H_
6 #define CONTENT_CHILD_APPCACHE_APPCACHE_FRONTEND_IMPL_H_
7
8 #include "content/common/appcache_interfaces.h"
9
10 namespace content {
11
12 class AppCacheFrontendImpl : public AppCacheFrontend {
13  public:
14   void OnCacheSelected(int host_id, const AppCacheInfo& info) override;
15   void OnStatusChanged(const std::vector<int>& host_ids,
16                        AppCacheStatus status) override;
17   void OnEventRaised(const std::vector<int>& host_ids,
18                      AppCacheEventID event_id) override;
19   void OnProgressEventRaised(const std::vector<int>& host_ids,
20                              const GURL& url,
21                              int num_total,
22                              int num_complete) override;
23   void OnErrorEventRaised(const std::vector<int>& host_ids,
24                           const AppCacheErrorDetails& details) override;
25   void OnLogMessage(int host_id,
26                     AppCacheLogLevel log_level,
27                     const std::string& message) override;
28   void OnContentBlocked(int host_id, const GURL& manifest_url) override;
29 };
30
31 }  // namespace content
32
33 #endif  // CONTENT_CHILD_APPCACHE_APPCACHE_FRONTEND_IMPL_H_