[M94 Migration] Load ErrorPage for HTTP Error 404
[platform/framework/web/chromium-efl.git] / tizen_src / ewk / efl_integration / network_delegate_efl.h
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Copyright 2014 Samsung Electronics. All rights reseoved.
3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file.
5
6 #ifndef _NETWORK_DELEGATE_EFL_H_
7 #define _NETWORK_DELEGATE_EFL_H_
8
9 #include "base/compiler_specific.h"
10 #include "net/base/network_delegate_impl.h"
11 #include "cookie_manager.h"
12
13 namespace net {
14
15 class NetworkDelegateEfl : public NetworkDelegateImpl {
16  public:
17   NetworkDelegateEfl(base::WeakPtr<CookieManager> cookie_manager);
18
19  private:
20   // NetworkDelegate implementation.
21 #if !defined(EWK_BRINGUP)  // FIXME: m85 bringup
22   AuthRequiredResponse OnAuthRequired(URLRequest* request,
23                                       const AuthChallengeInfo& auth_info,
24                                       AuthCallback callback,
25                                       AuthCredentials* credentials) override;
26 #endif
27
28   bool OnCanGetCookies(const URLRequest& request, bool allowed_from_caller);
29
30   bool OnCanSetCookie(const URLRequest& request,
31                       const CanonicalCookie& cookie,
32                       CookieOptions* options,
33                       bool allowed_from_caller) override;
34
35   bool OnCanAccessFile(const URLRequest& request,
36                        const base::FilePath& original_path,
37                        const base::FilePath& absolute_path) const;
38
39   base::WeakPtr<CookieManager> cookie_manager_;
40 };
41
42 }  // namespace net
43
44 #endif  // _NETWORK_DELEGATE_EFL_H_