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.
6 #ifndef _NETWORK_DELEGATE_EFL_H_
7 #define _NETWORK_DELEGATE_EFL_H_
9 #include "base/compiler_specific.h"
10 #include "net/base/network_delegate_impl.h"
11 #include "cookie_manager.h"
15 class NetworkDelegateEfl : public NetworkDelegateImpl {
17 NetworkDelegateEfl(base::WeakPtr<CookieManager> cookie_manager);
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;
28 bool OnCanGetCookies(const URLRequest& request, bool allowed_from_caller);
30 bool OnCanSetCookie(const URLRequest& request,
31 const CanonicalCookie& cookie,
32 CookieOptions* options,
33 bool allowed_from_caller) override;
35 bool OnCanAccessFile(const URLRequest& request,
36 const base::FilePath& original_path,
37 const base::FilePath& absolute_path) const;
39 base::WeakPtr<CookieManager> cookie_manager_;
44 #endif // _NETWORK_DELEGATE_EFL_H_