Home | History | Annotate | Download | only in renderer
      1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_PARAMS_H_
      6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_PARAMS_H_
      7 
      8 #include "base/basictypes.h"
      9 #include "base/memory/ref_counted.h"
     10 #include "base/strings/string16.h"
     11 #include "content/common/content_export.h"
     12 #include "content/common/view_message_enums.h"
     13 
     14 struct WebPreferences;
     15 
     16 namespace blink {
     17 struct WebScreenInfo;
     18 }
     19 
     20 namespace content {
     21 
     22 struct RendererPreferences;
     23 
     24 // Container for all parameters passed to RenderViewImpl's constructor.
     25 struct CONTENT_EXPORT RenderViewImplParams {
     26   RenderViewImplParams(int32 opener_id,
     27                        const RendererPreferences& renderer_prefs,
     28                        const WebPreferences& webkit_prefs,
     29                        int32 routing_id,
     30                        int32 main_frame_routing_id,
     31                        int32 surface_id,
     32                        int64 session_storage_namespace_id,
     33                        const base::string16& frame_name,
     34                        bool is_renderer_created,
     35                        bool swapped_out,
     36                        bool hidden,
     37                        int32 next_page_id,
     38                        const blink::WebScreenInfo& screen_info,
     39                        AccessibilityMode accessibility_mode,
     40                        bool allow_partial_swap);
     41   ~RenderViewImplParams();
     42 
     43   int32 opener_id;
     44   const RendererPreferences& renderer_prefs;
     45   const WebPreferences& webkit_prefs;
     46   int32 routing_id;
     47   int32 main_frame_routing_id;
     48   int32 surface_id;
     49   int64 session_storage_namespace_id;
     50   const base::string16& frame_name;
     51   bool is_renderer_created;
     52   bool swapped_out;
     53   bool hidden;
     54   int32 next_page_id;
     55   const blink::WebScreenInfo& screen_info;
     56   AccessibilityMode accessibility_mode;
     57   bool allow_partial_swap;
     58 };
     59 
     60 }  // namespace content
     61 
     62 #endif  // CONTENT_RENDERER_RENDER_VIEW_IMPL_PARAMS_H_
     63