blob: bc9f1436d82dd7a6a5ff37b8ab50b35118963993 [file] [log] [blame]
// Copyright (c) 2012 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 CONTENT_PUBLIC_COMMON_URL_FETCHER_H_
#define CONTENT_PUBLIC_COMMON_URL_FETCHER_H_
#include "base/optional.h"
#include "content/common/content_export.h"
namespace net {
class URLFetcher;
} // namespace
namespace url {
class Origin;
} // namespace
namespace content {
// Mark URLRequests started by the URLFetcher to stem from the given render
// frame.
CONTENT_EXPORT void AssociateURLFetcherWithRenderFrame(
net::URLFetcher* url_fetcher,
const base::Optional<url::Origin>& initiator,
int render_process_id,
int render_frame_id);
} // namespace content
#endif // CONTENT_PUBLIC_COMMON_URL_FETCHER_H_