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 WebKit {
     17 struct WebScreenInfo;
     18 }
     19 
     20 namespace content {
     21 
     22 struct RendererPreferences;
     23 typedef base::RefCountedData<int> SharedRenderViewCounter;
     24 
     25 // Container for all parameters passed to RenderViewImpl's constructor.
     26 struct CONTENT_EXPORT RenderViewImplParams {
     27   RenderViewImplParams(int32 opener_id,
     28                        const RendererPreferences& renderer_prefs,
     29                        const WebPreferences& webkit_prefs,
     30                        SharedRenderViewCounter* counter,
     31                        int32 routing_id,
     32                        int32 main_frame_routing_id,
     33                        int32 surface_id,
     34                        int64 session_storage_namespace_id,
     35                        const string16& frame_name,
     36                        bool is_renderer_created,
     37                        bool swapped_out,
     38                        int32 next_page_id,
     39                        const WebKit::WebScreenInfo& screen_info,
     40                        AccessibilityMode accessibility_mode,
     41                        bool allow_partial_swap);
     42   ~RenderViewImplParams();
     43 
     44   int32 opener_id;
     45   const RendererPreferences& renderer_prefs;
     46   const WebPreferences& webkit_prefs;
     47   SharedRenderViewCounter* counter;
     48   int32 routing_id;
     49   int32 main_frame_routing_id;
     50   int32 surface_id;
     51   int64 session_storage_namespace_id;
     52   const string16& frame_name;
     53   bool is_renderer_created;
     54   bool swapped_out;
     55   int32 next_page_id;
     56   const WebKit::WebScreenInfo& screen_info;
     57   AccessibilityMode accessibility_mode;
     58   bool allow_partial_swap;
     59 };
     60 
     61 }  // namespace content
     62 
     63 #endif  // CONTENT_RENDERER_RENDER_VIEW_IMPL_PARAMS_H_
     64