mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Update all files to use Windows CRLF (\r\n) line endings (issue #45).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@33 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@@ -1,40 +1,40 @@
|
||||
// Copyright (c) 2008 The Chromium Embedded Framework Authors.
|
||||
// Portions copyright (c) 2006-2008 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 _BROWSER_RESOURCE_LOADER_BRIDGE_H
|
||||
#define _BROWSER_RESOURCE_LOADER_BRIDGE_H
|
||||
|
||||
#include <string>
|
||||
|
||||
class GURL;
|
||||
class URLRequestContext;
|
||||
|
||||
class BrowserResourceLoaderBridge {
|
||||
public:
|
||||
// Call this function to initialize the simple resource loader bridge. If
|
||||
// the given context is null, then a default BrowserRequestContext will be
|
||||
// instantiated. Otherwise, a reference is taken to the given request
|
||||
// context, which will be released when Shutdown is called. The caller
|
||||
// should not hold another reference to the request context! It is safe to
|
||||
// call this function multiple times.
|
||||
//
|
||||
// NOTE: If this function is not called, then a default request context will
|
||||
// be initialized lazily.
|
||||
//
|
||||
static void Init(URLRequestContext* context);
|
||||
|
||||
// Call this function to shutdown the simple resource loader bridge.
|
||||
static void Shutdown();
|
||||
|
||||
// May only be called after Init.
|
||||
static void SetCookie(const GURL& url,
|
||||
const GURL& first_party_for_cookies,
|
||||
const std::string& cookie);
|
||||
static std::string GetCookies(const GURL& url,
|
||||
const GURL& first_party_for_cookies);
|
||||
};
|
||||
|
||||
#endif // _BROWSER_RESOURCE_LOADER_BRIDGE_H
|
||||
|
||||
// Copyright (c) 2008 The Chromium Embedded Framework Authors.
|
||||
// Portions copyright (c) 2006-2008 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 _BROWSER_RESOURCE_LOADER_BRIDGE_H
|
||||
#define _BROWSER_RESOURCE_LOADER_BRIDGE_H
|
||||
|
||||
#include <string>
|
||||
|
||||
class GURL;
|
||||
class URLRequestContext;
|
||||
|
||||
class BrowserResourceLoaderBridge {
|
||||
public:
|
||||
// Call this function to initialize the simple resource loader bridge. If
|
||||
// the given context is null, then a default BrowserRequestContext will be
|
||||
// instantiated. Otherwise, a reference is taken to the given request
|
||||
// context, which will be released when Shutdown is called. The caller
|
||||
// should not hold another reference to the request context! It is safe to
|
||||
// call this function multiple times.
|
||||
//
|
||||
// NOTE: If this function is not called, then a default request context will
|
||||
// be initialized lazily.
|
||||
//
|
||||
static void Init(URLRequestContext* context);
|
||||
|
||||
// Call this function to shutdown the simple resource loader bridge.
|
||||
static void Shutdown();
|
||||
|
||||
// May only be called after Init.
|
||||
static void SetCookie(const GURL& url,
|
||||
const GURL& first_party_for_cookies,
|
||||
const std::string& cookie);
|
||||
static std::string GetCookies(const GURL& url,
|
||||
const GURL& first_party_for_cookies);
|
||||
};
|
||||
|
||||
#endif // _BROWSER_RESOURCE_LOADER_BRIDGE_H
|
||||
|
||||
|
Reference in New Issue
Block a user