// Copyright (c) 2011 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 WEBKIT_GLUE_REQUEST_EXTRA_DATA_H_ #define WEBKIT_GLUE_REQUEST_EXTRA_DATA_H_ #pragma once #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLRequest.h" // The RenderView stores an instance of this class in the "extra data" of each // ResourceRequest (see RenderView::willSendRequest). class RequestExtraData : public WebKit::WebURLRequest::ExtraData { public: RequestExtraData(bool is_main_frame, int64 frame_identifier); virtual ~RequestExtraData(); bool is_main_frame() const { return is_main_frame_; } int64 frame_identifier() const { return frame_identifier_; } private: bool is_main_frame_; int64 frame_identifier_; DISALLOW_COPY_AND_ASSIGN(RequestExtraData); }; #endif // WEBKIT_GLUE_REQUEST_EXTRA_DATA_H_