[M51_2704] Chromium upversion to m51_2704 branch.
authorGajendra N <gajendra.n@samsung.com>
Wed, 18 May 2016 12:49:14 +0000 (18:19 +0530)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 10 Jul 2018 07:55:23 +0000 (07:55 +0000)
This patch deals with the following changes:

1. Change in parameters of RunJavaScriptDialog() & RunBeforeUnloadDialog() functions
   of JavaScriptDialogManagerEfl.
2. WebGraphicsContext3DCommandBufferImpl constructor takes additional parameters
   gfx::PreferIntegratedGpu, share_resources & automatic_flushes. Also surface_id (int)
   is changed to SurfaceHandle.
3. Use gpu::gles2::ContextCreationAttribHelper in place of blink::WebGraphicsContext3D
   ::Attributes and initialize their members accordingly.
4. GpuChannelHost is moved from 'content' to 'gpu' namespace.
5. Context type BROWSER_COMPOSITOR_ONSCREEN_CONTEXT renamed to
   DISPLAY_COMPOSITOR_ONSCREEN_CONTEXT.
6. CommandBufferProxyImpl is moved from 'content' to 'gpu' namespace.
7. MovePluginWindows() of RenderWidgetHostView is removed is upstream.
8. ViewHostMsg_TextInputState_Params is renamed to TextInputState.
9. switches::kTabCaptureDownscaleQuality & switches::kTabCaptureUpscaleQuality are
   removed, hence SCALER_QUALITY is not dependant on these switches.
10. Change in parameter types for HandleNewWindowRequest() & HandleNewWebContentsCreate()
    functions due to scoped_refptr changes.
11. webplugin_delegate_impl.h is removed in upstream, hence remove related files from efl.
12. GpuChildThreadEfl constructor takes addtional parameter gpu::GpuPreferences.
13. Use switches::IsRunLayoutTestSwitchPresent() in place of HasSwitch(switches::kRunLayoutTest)
    as switches::kRunLayoutTest is no longer available.
14. media/ozone/media_ozone_platform.h is removed, hence remove related files from efl.
15. PermissionStatus is moved from content to blink::mojom:: namespace.
16. Include base/macros.h for DISALLOW_COPY_AND_ASSIGN macro.
17. Initialize BrowserContext with DIR_USER_DATA path before creation of RequestContext.
18. Overloaded CreateRequestContext() is replaced with CreateRequestContextForStoragePartition().
19. CookieStore & CookieMonster are no more ReferenceCounted hence use scoped_ptr and std::move
    during assignment and parameter passing.
20. NavigationController::ReloadIgnoringCache() is renamed to ReloadBypassingCache().
21. RenderProcessObserver::WebKitInitialized() is removed in upstream.
22. blink::WebFrameContentDumper::dumpFrameTreeAsText() is renamed to dumpWebViewAsText() which
    accepts WebView object instead of WebFrame.
23. setBaseBackgroundColor() is moved to WebFrameWidget.
24. 'network_delegate' member is removed from NetworkSessionParams.
25. Change in path for headers : gl_helper.h, command_buffer_proxy_impl.h, resize_lock.h,
    gpu_messages.h, gpu_host_messages.h, delegated_frame_host.h & permission_status.mojom.h
26. Version change from 50.2661 to 51.2704 in build and packaging related files.

AddExtraPluginDir() is removed from PluginListi class. The code under EWebContext::
AddExtraPluginDir() is disabled under EWK_BRINUP flag. This will be fixed by WebView team.
JIRA issue raised at http://suprem.sec.samsung.net/jira/browse/TWF-1132

Bug : http://suprem.sec.samsung.net/jira/browse/TWF-1060

Change-Id: I588d9c25c051dc72d76b7e6aa82d4a0f15ff01a2
Signed-off-by: Suchit Agrawal <a.suchit@samsung.com>
65 files changed:
tizen_src/DEPS.efl
tizen_src/chromium_impl/components/js_dialogs_efl/javascript_dialog_manager_efl.cc
tizen_src/chromium_impl/components/js_dialogs_efl/javascript_dialog_manager_efl.h
tizen_src/chromium_impl/content/browser/compositor/context_factory_efl.cc
tizen_src/chromium_impl/content/browser/compositor/mailbox_output_surface_efl.cc
tizen_src/chromium_impl/content/browser/compositor/mailbox_output_surface_efl.h
tizen_src/chromium_impl/content/browser/device_sensors/data_fetcher_impl_tizen.cc
tizen_src/chromium_impl/content/browser/renderer_host/render_widget_host_view_efl.cc
tizen_src/chromium_impl/content/browser/renderer_host/render_widget_host_view_efl.h
tizen_src/chromium_impl/content/browser/web_contents/web_contents_impl_efl.cc
tizen_src/chromium_impl/content/browser/web_contents/web_contents_impl_efl.h
tizen_src/chromium_impl/content/browser/web_contents/web_contents_view_efl.h
tizen_src/chromium_impl/content/browser/web_contents/web_drag_source_efl.h
tizen_src/chromium_impl/content/child/npapi/webplugin_delegate_impl_efl.cc [deleted file]
tizen_src/chromium_impl/content/common/paths_efl.cc
tizen_src/chromium_impl/content/content_child_efl.gypi [deleted file]
tizen_src/chromium_impl/content/content_efl.gypi
tizen_src/chromium_impl/content/gpu/in_process_gpu_thread_efl.cc
tizen_src/chromium_impl/content/shell/browser/shell_efl.cc
tizen_src/chromium_impl/content/shell/browser/shell_web_contents_view_delegate_efl.cc
tizen_src/chromium_impl/ui/ozone/media_ozone_platform_efl.cc [deleted file]
tizen_src/chromium_impl/ui/ozone/ozone_efl.gyp
tizen_src/ewk/efl_integration/browser/geolocation/geolocation_permission_context_efl.cc
tizen_src/ewk/efl_integration/browser/geolocation/geolocation_permission_context_efl.h
tizen_src/ewk/efl_integration/browser/javascript_dialog_manager_efl.cc
tizen_src/ewk/efl_integration/browser/javascript_dialog_manager_efl.h
tizen_src/ewk/efl_integration/browser/javascript_modal_dialog_efl.cc [changed mode: 0755->0644]
tizen_src/ewk/efl_integration/browser/javascript_modal_dialog_efl.h
tizen_src/ewk/efl_integration/browser/notification/notification_controller_efl.cc
tizen_src/ewk/efl_integration/browser/notification/notification_controller_efl.h
tizen_src/ewk/efl_integration/browser/permission_manager_efl.cc
tizen_src/ewk/efl_integration/browser/permission_manager_efl.h
tizen_src/ewk/efl_integration/browser/vibration/vibration_provider_client.h
tizen_src/ewk/efl_integration/browser_context_efl.cc
tizen_src/ewk/efl_integration/browser_context_efl.h
tizen_src/ewk/efl_integration/browser_main_parts_efl.h
tizen_src/ewk/efl_integration/common/version_info.h
tizen_src/ewk/efl_integration/content_browser_client_efl.cc
tizen_src/ewk/efl_integration/content_browser_client_efl.h
tizen_src/ewk/efl_integration/context_menu_controller_efl.cc
tizen_src/ewk/efl_integration/cookie_manager.cc
tizen_src/ewk/efl_integration/cookie_manager.h
tizen_src/ewk/efl_integration/eweb_context.cc
tizen_src/ewk/efl_integration/eweb_view.cc
tizen_src/ewk/efl_integration/eweb_view.h
tizen_src/ewk/efl_integration/pkgconfig/chromium-ewk.pc
tizen_src/ewk/efl_integration/private/ewk_geolocation_private.cc
tizen_src/ewk/efl_integration/private/ewk_geolocation_private.h
tizen_src/ewk/efl_integration/private/ewk_notification_private.cc
tizen_src/ewk/efl_integration/private/ewk_notification_private.h
tizen_src/ewk/efl_integration/public/ewk_view.cc
tizen_src/ewk/efl_integration/renderer/render_process_observer_efl.cc
tizen_src/ewk/efl_integration/renderer/render_process_observer_efl.h
tizen_src/ewk/efl_integration/renderer/render_view_observer_efl.cc
tizen_src/ewk/efl_integration/url_request_context_getter_efl.cc
tizen_src/ewk/efl_integration/url_request_context_getter_efl.h
tizen_src/ewk/efl_webview_app/chromium-efl.xml
tizen_src/ewk/efl_webview_app/chromium-efl_v3.0.xml
tizen_src/ewk/efl_webview_app/ubrowser.xml
tizen_src/ewk/efl_webview_app/ubrowser_v3.0.xml
tizen_src/ewk/ubrowser/ubrowser.xml
tizen_src/packaging/chromium-efl-libs.spec
tizen_src/packaging/chromium-efl.spec
tizen_src/packaging/crosswalk-bin.spec
tizen_src/packaging/manifest.xml

index 270d87a..2b0623e 100644 (file)
@@ -26,7 +26,7 @@ khronos_cl_api_rev = '6f4be98d10f03ce2b12c769cd9835c73a441c00f'
 # SVN revision while Blink is still in SVN.
 blink_upstream_rev = '191638' #TODO(TK) : need to update revision number
 
-efl_integration_branch = 'origin/dev/m50_2661'
+efl_integration_branch = 'origin/dev/m51_2704'
 ct_git = 'ssh://165.213.202.130:29418/webplatform'
 crosswalk_git = 'https://github.com/crosswalk-project'
 
index b2ae6b3..afb566e 100644 (file)
@@ -21,7 +21,6 @@ JavaScriptDialogManagerEfl::~JavaScriptDialogManagerEfl() {
 void JavaScriptDialogManagerEfl::RunJavaScriptDialog(
     content::WebContents* web_contents,
     const GURL& origin_url,
-    const std::string& accept_lang,
     content::JavaScriptMessageType type,
     const base::string16& message_text,
     const base::string16& default_prompt_text,
@@ -55,17 +54,16 @@ void JavaScriptDialogManagerEfl::RunJavaScriptDialog(
 
 void JavaScriptDialogManagerEfl::RunBeforeUnloadDialog(
     content::WebContents* web_contents,
-    const base::string16& message_text,
     bool is_reload,
     const DialogClosedCallback& callback) {
   DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
 
   CancelActiveAndPendingDialogs(web_contents);
-  open_dialogs_[web_contents] =  new JavaScriptModalDialogEfl(web_contents,
-      JavaScriptModalDialogEfl::NAVIGATION,
+  open_dialogs_[web_contents] = new JavaScriptModalDialogEfl(
+      web_contents, JavaScriptModalDialogEfl::NAVIGATION,
       base::UTF8ToUTF16(
           std::string(dgettext("WebKit", "IDS_WEBVIEW_BEFOREUNLOAD_MESSAGE"))),
-      message_text, callback);
+      base::string16(), callback);
 }
 
 bool JavaScriptDialogManagerEfl::HandleJavaScriptDialog(
index b3aea2c..4e668e1 100644 (file)
@@ -28,7 +28,6 @@ class JavaScriptDialogManagerEfl: public JavaScriptDialogManager {
   void RunJavaScriptDialog(
       content::WebContents* web_contents,
       const GURL& origin_url,
-      const std::string& accept_lang,
       content::JavaScriptMessageType type,
       const base::string16& message_text,
       const base::string16& default_prompt_text,
@@ -36,7 +35,6 @@ class JavaScriptDialogManagerEfl: public JavaScriptDialogManager {
       bool* did_suppress_message) override;
   void RunBeforeUnloadDialog(
       content::WebContents* web_contents,
-      const base::string16& message_text,
       bool is_reload,
       const DialogClosedCallback& callback) override;
   bool HandleJavaScriptDialog(
index bf2396d..7654089 100644 (file)
@@ -7,10 +7,11 @@
 #include "cc/raster/single_thread_task_graph_runner.h"
 #include "cc/surfaces/onscreen_display_client.h"
 #include "cc/surfaces/surface_display_output_surface.h"
+#include "content/browser/compositor/gl_helper.h"
 #include "content/browser/compositor/mailbox_output_surface_efl.h"
 #include "content/browser/gpu/browser_gpu_channel_host_factory.h"
 #include "content/browser/gpu/browser_gpu_memory_buffer_manager.h"
-#include "content/common/gpu/client/gl_helper.h"
+#include "content/browser/gpu/gpu_surface_tracker.h"
 #include "content/common/host_shared_bitmap_manager.h"
 #include "ui/compositor/reflector.h"
 
@@ -30,16 +31,21 @@ class FakeReflector : public ui::Reflector {
 
 static scoped_ptr<WebGraphicsContext3DCommandBufferImpl>
 CreateGpuProcessViewContext(
-    const scoped_refptr<GpuChannelHost>& gpu_channel_host,
-    const blink::WebGraphicsContext3D::Attributes attributes,
+    const scoped_refptr<gpu::GpuChannelHost>& gpu_channel_host,
+    const gpu::gles2::ContextCreationAttribHelper attributes,
     int surface_id) {
   DCHECK(gpu_channel_host.get());
 
+  GpuSurfaceTracker* tracker = GpuSurfaceTracker::Get();
+  gpu::SurfaceHandle surface_handle =
+      surface_id ? tracker->GetSurfaceHandle(surface_id)
+                 : gpu::kNullSurfaceHandle;
   GURL url("chrome://gpu/Compositor::createContext3D");
-  bool lose_context_when_out_of_memory = true;
+  bool share_resources = true;
+  bool automatic_flushes = false;
   return make_scoped_ptr(new WebGraphicsContext3DCommandBufferImpl(
-      surface_id, url, gpu_channel_host.get(), attributes,
-      lose_context_when_out_of_memory,
+      surface_handle, url, gpu_channel_host.get(), attributes,
+      gfx::PreferIntegratedGpu, share_resources, automatic_flushes,
       WebGraphicsContext3DCommandBufferImpl::SharedMemoryLimits(), NULL));
 }
 
@@ -57,24 +63,26 @@ ContextFactoryEfl::~ContextFactoryEfl() {
 
 void ContextFactoryEfl::CreateOutputSurface(
     base::WeakPtr<ui::Compositor> compositor) {
-  blink::WebGraphicsContext3D::Attributes attrs;
-  attrs.depth = false;
-  attrs.stencil = false;
-  attrs.antialias = false;
-  attrs.shareResources = true;
-  attrs.noAutomaticFlushes = true;
+  gpu::gles2::ContextCreationAttribHelper attrs;
+  attrs.alpha_size = -1;
+  attrs.depth_size = 0;
+  attrs.stencil_size = 0;
+  attrs.samples = 0;
+  attrs.sample_buffers = 0;
+  attrs.bind_generates_resource = false;
+  attrs.lose_context_when_out_of_memory = true;
 
   scoped_refptr<content::ContextProviderCommandBuffer> context_provider;
   content::BrowserGpuChannelHostFactory* factory =
       content::BrowserGpuChannelHostFactory::instance();
   content::CauseForGpuLaunch cause = content::
       CAUSE_FOR_GPU_LAUNCH_WEBGRAPHICSCONTEXT3DCOMMANDBUFFERIMPL_INITIALIZE;
-  scoped_refptr<content::GpuChannelHost> gpu_channel_host(
+  scoped_refptr<gpu::GpuChannelHost> gpu_channel_host(
       factory->EstablishGpuChannelSync(cause));
   if (gpu_channel_host.get() && !gpu_channel_host->IsLost()) {
     context_provider = content::ContextProviderCommandBuffer::Create(
         CreateGpuProcessViewContext(gpu_channel_host, attrs, 0),
-        content::BROWSER_COMPOSITOR_ONSCREEN_CONTEXT);
+        content::DISPLAY_COMPOSITOR_ONSCREEN_CONTEXT);
   }
   if (!context_provider.get()) {
     LOG(ERROR) << "Failed to create 3D context for compositor.";
@@ -114,19 +122,21 @@ ContextFactoryEfl::SharedMainThreadContextProvider() {
   if (shared_main_thread_contexts_.get())
     return shared_main_thread_contexts_;
 
-  blink::WebGraphicsContext3D::Attributes attrs;
-  attrs.depth = false;
-  attrs.stencil = false;
-  attrs.antialias = false;
-  attrs.shareResources = true;
-  attrs.noAutomaticFlushes = true;
+  gpu::gles2::ContextCreationAttribHelper attrs;
+  attrs.alpha_size = -1;
+  attrs.depth_size = 0;
+  attrs.stencil_size = 0;
+  attrs.samples = 0;
+  attrs.sample_buffers = 0;
+  attrs.bind_generates_resource = false;
+  attrs.lose_context_when_out_of_memory = true;
 
   scoped_refptr<content::ContextProviderCommandBuffer> context_provider;
   content::BrowserGpuChannelHostFactory* factory =
       content::BrowserGpuChannelHostFactory::instance();
   content::CauseForGpuLaunch cause = content::
       CAUSE_FOR_GPU_LAUNCH_WEBGRAPHICSCONTEXT3DCOMMANDBUFFERIMPL_INITIALIZE;
-  scoped_refptr<content::GpuChannelHost> gpu_channel_host(
+  scoped_refptr<gpu::GpuChannelHost> gpu_channel_host(
       factory->EstablishGpuChannelSync(cause));
   if (gpu_channel_host.get() && !gpu_channel_host->IsLost()) {
     shared_main_thread_contexts_ =
index 838977e..c83065d 100644 (file)
@@ -245,10 +245,10 @@ bool MailboxOutputSurfaceEfl::BindToClient(cc::OutputSurfaceClient* client) {
   return true;
 }
 
-CommandBufferProxyImpl* MailboxOutputSurfaceEfl::GetCommandBufferProxy() {
+gpu::CommandBufferProxyImpl* MailboxOutputSurfaceEfl::GetCommandBufferProxy() {
   ContextProviderCommandBuffer* provider_command_buffer =
       static_cast<ContextProviderCommandBuffer*>(context_provider_.get());
-  CommandBufferProxyImpl* command_buffer_proxy =
+  gpu::CommandBufferProxyImpl* command_buffer_proxy =
       provider_command_buffer->GetCommandBufferProxy();
   DCHECK(command_buffer_proxy);
   return command_buffer_proxy;
index c7f9641..aa861b6 100644 (file)
@@ -9,8 +9,8 @@
 #include "cc/output/gl_frame_data.h"
 #include "cc/output/output_surface.h"
 #include "cc/resources/resource_format.h"
-#include "content/common/gpu/client/command_buffer_proxy_impl.h"
 #include "content/common/gpu/client/context_provider_command_buffer.h"
+#include "gpu/ipc/client/command_buffer_proxy_impl.h"
 #include "ui/gfx/swap_result.h"
 #include "ui/compositor/compositor.h"
 
@@ -39,7 +39,7 @@ class MailboxOutputSurfaceEfl : public cc::OutputSurface {
  private:
   void OnSwapAck(scoped_ptr<cc::GLFrameData> gl_frame_data);
   void DrawTexture(scoped_ptr<cc::GLFrameData> gl_frame_data);
-  CommandBufferProxyImpl* GetCommandBufferProxy();
+  gpu::CommandBufferProxyImpl* GetCommandBufferProxy();
   void OnSwapBuffersCompleted(const std::vector<ui::LatencyInfo>& latency_info,
                               gfx::SwapResult result);
 
@@ -73,4 +73,4 @@ class MailboxOutputSurfaceEfl : public cc::OutputSurface {
 
 }  // namespace content
 
-#endif  // CONTENT_BROWSER_COMPOSITOR_MAILBOX_OUTPUT_SURFACE_EFL_H_
\ No newline at end of file
+#endif  // CONTENT_BROWSER_COMPOSITOR_MAILBOX_OUTPUT_SURFACE_EFL_H_
index 94061bc..bc2d246 100644 (file)
@@ -244,7 +244,6 @@ void DataFetcherImplTizen::onAccelerationChanged(sensor_h sensor,
 void DataFetcherImplTizen::SetOrientationBufferReadyStatus(bool ready) {
   device_orientation_buffer_->seqlock.WriteBegin();
   device_orientation_buffer_->data.absolute = ready;
-  device_orientation_buffer_->data.hasAbsolute = ready;
   device_orientation_buffer_->data.allAvailableSensorsAreActive = ready;
   device_orientation_buffer_->seqlock.WriteEnd();
   is_orientation_buffer_ready_ = ready;
index 9a13cd0..61728f8 100644 (file)
 #include "base/thread_task_runner_handle.h"
 #include "base/logging.h"
 #include "base/strings/utf_string_conversions.h"
-#include "content/common/view_messages.h"
-#include "content/browser/compositor/resize_lock.h"
+#include "content/browser/compositor/gl_helper.h"
 #include "content/browser/gpu/browser_gpu_channel_host_factory.h"
 #include "content/browser/gpu/compositor_util.h"
 #include "content/browser/renderer_host/render_widget_host_impl.h"
+#include "content/browser/renderer_host/resize_lock.h"
 #include "content/browser/renderer_host/ui_events_helper.h"
 #include "content/browser/renderer_host/im_context_efl.h"
 #include "content/browser/renderer_host/edge_effect.h"
 #include "content/browser/renderer_host/input/web_input_event_util.h"
 #include "content/browser/renderer_host/render_view_host_impl.h"
 #include "content/browser/gpu/gpu_process_host.h"
-#include "content/common/gpu/client/gl_helper.h"
 #include "content/common/input/did_overscroll_params.h"
 #include "content/common/input_messages.h"
-#include "content/common/gpu/gpu_messages.h"
 #include "content/common/cursors/webcursor_efl.h"
+#include "content/common/view_messages.h"
 #include "content/gpu/shared_mailbox_manager.h"
 #include "content/public/browser/render_widget_host_view_frame_subscriber.h"
 #include "content/public/browser/screen_orientation_dispatcher_host.h"
@@ -50,6 +49,8 @@
 #include "content/public/browser/render_process_host.h"
 #include "content/public/common/content_switches.h"
 #include "gpu/command_buffer/service/mailbox_manager.h"
+#include "gpu/ipc/common/gpu_messages.h"
+#include "media/base/video_frame.h"
 #include "media/base/video_util.h"
 #include "skia/ext/image_operations.h"
 #include "third_party/WebKit/public/web/WebInputEvent.h"
@@ -782,10 +783,6 @@ void RenderWidgetHostViewEfl::OnDidHandleKeyEvent(
     im_context_->HandleKeyEvent(processed);
 }
 
-void RenderWidgetHostViewEfl::MovePluginWindows(
-    const std::vector<WebPluginGeometry>& moves) {
-}
-
 void RenderWidgetHostViewEfl::UpdateCursor(const WebCursor& webcursor) {
   if (is_loading_) {
     // Setting native Loading cursor
@@ -818,8 +815,7 @@ void RenderWidgetHostViewEfl::SetIsLoading(bool is_loading) {
 }
 
 void RenderWidgetHostViewEfl::TextInputStateChanged(
-    const ViewHostMsg_TextInputState_Params& params) {
-
+    const TextInputState& params) {
   if (!params.show_ime_if_needed) {
     WebContentsImpl* wci = static_cast<WebContentsImpl*>(&web_contents_);
     WebContentsViewEfl* wcve = static_cast<WebContentsViewEfl*>(wci->GetView());
@@ -1228,20 +1224,9 @@ void RenderWidgetHostViewEfl::CopyFromCompositingSurfaceHasResultForVideo(
       yuv_readback_pipeline->scaler()->SrcSubrect() != result_rect ||
       yuv_readback_pipeline->scaler()->DstSize() != region_in_frame.size()) {
     GLHelper::ScalerQuality quality = GLHelper::SCALER_QUALITY_FAST;
-    std::string quality_switch = switches::kTabCaptureDownscaleQuality;
     // If we're scaling up, we can use the "best" quality.
     if (result_rect.size().width() < region_in_frame.size().width() &&
         result_rect.size().height() < region_in_frame.size().height())
-      quality_switch = switches::kTabCaptureUpscaleQuality;
-
-    std::string switch_value =
-        base::CommandLine::ForCurrentProcess()->
-            GetSwitchValueASCII(quality_switch);
-    if (switch_value == "fast")
-      quality = GLHelper::SCALER_QUALITY_FAST;
-    else if (switch_value == "good")
-      quality = GLHelper::SCALER_QUALITY_GOOD;
-    else if (switch_value == "best")
       quality = GLHelper::SCALER_QUALITY_BEST;
 
     rwhvefl->yuv_readback_pipeline_.reset(
index 932ff67..a0a5371 100644 (file)
@@ -25,9 +25,9 @@
 #include "cc/resources/single_release_callback.h"
 #include "cc/resources/texture_mailbox.h"
 #include "content/browser/accessibility/browser_accessibility_manager.h"
-#include "content/browser/compositor/delegated_frame_host.h"
 #include "content/browser/compositor/image_transport_factory.h"
 #include "content/browser/compositor/owned_mailbox.h"
+#include "content/browser/renderer_host/delegated_frame_host.h"
 #include "content/browser/renderer_host/render_widget_host_view_base.h"
 #include "content/browser/selection/selection_controller_efl.h"
 #include "gpu/command_buffer/common/mailbox.h"
@@ -50,7 +50,7 @@ typedef EvasGLint64          GLint64;
 typedef EvasGLuint64         GLuint64;
 #endif
 
-struct ViewHostMsg_TextInputState_Params;
+struct TextInputState;
 
 namespace ui {
 class Compositor;
@@ -108,14 +108,17 @@ class CONTENT_EXPORT RenderWidgetHostViewEfl
   void UnlockMouse() override;
   void Focus() override;
   bool HasFocus() const override;
-  void MovePluginWindows(
-      const std::vector<WebPluginGeometry>&) override;
   void UpdateCursor(const WebCursor&) override;
   void SetIsLoading(bool) override;
 
+#if defined(EWK_BRINGUP)
+  // [M51_2704] TextInputStateChanged() should be removed and its functionality
+  //            should be moved/implemented in appropriate place based on
+  //            upstream commit : https://codereview.chromium.org/1652483002,
+  //            as it may introduce regression.
   // Updates the state of the input method attached to the view.
-  void TextInputStateChanged(
-      const ViewHostMsg_TextInputState_Params& params) override;
+  void TextInputStateChanged(const TextInputState& params);
+#endif
 
   void OnTextInputInFormStateChanged(bool is_in_form_tag);
 
index a9a121f..dd5fcd3 100644 (file)
@@ -231,9 +231,8 @@ void WebContentsImplEfl::HandleNewWindowRequest(
     int route_id,
     int main_frame_route_id,
     const ViewHostMsg_CreateWindow_Params& params,
-    SessionStorageNamespace* session_storage_namespace,
+    scoped_refptr<SessionStorageNamespace> session_storage_namespace,
     bool create) {
-
   if (create) {
     scoped_refptr<SessionStorageNamespace> ssn = session_storage_namespace;
     WebContentsEflDelegate::WebContentsCreateCallback callback = base::Bind(
@@ -254,7 +253,7 @@ WebContents* WebContentsImplEfl::HandleNewWebContentsCreate(
     int route_id,
     int main_frame_route_id,
     const ViewHostMsg_CreateWindow_Params& params,
-    SessionStorageNamespace* session_storage_namespace,
+    scoped_refptr<SessionStorageNamespace> session_storage_namespace,
     void* platform_data) {
   bool is_guest = BrowserPluginGuest::IsGuest(this);
   scoped_refptr<SiteInstance> site_instance =
@@ -310,8 +309,7 @@ WebContents* WebContentsImplEfl::HandleNewWebContentsCreate(
     NOTREACHED();
   }
   new_contents->GetController().SetSessionStorageNamespace(
-        partition_id,
-        session_storage_namespace);
+      partition_id, session_storage_namespace.get());
 
   // Added for EFL port
   new_contents->platform_data_ = platform_data;
index 38f6b5d..fc5fc67 100644 (file)
@@ -5,6 +5,7 @@
 #ifndef WEB_CONTENTS_IMPL_EFL_H_
 #define WEB_CONTENTS_IMPL_EFL_H_
 
+#include "base/memory/ref_counted.h"
 #include "content/browser/web_contents/web_contents_impl.h"
 #include "content/common/content_export.h"
 
@@ -52,7 +53,7 @@ class CONTENT_EXPORT WebContentsImplEfl : public WebContentsImpl {
       int route_id,
       int main_frame_route_id,
       const ViewHostMsg_CreateWindow_Params& params,
-      SessionStorageNamespace* session_storage_namespace,
+      scoped_refptr<SessionStorageNamespace> session_storage_namespace,
       bool create);
 
   WebContents* HandleNewWebContentsCreate(
@@ -60,7 +61,7 @@ class CONTENT_EXPORT WebContentsImplEfl : public WebContentsImpl {
       int route_id,
       int main_frame_route_id,
       const ViewHostMsg_CreateWindow_Params& params,
-      SessionStorageNamespace* session_storage_namespace,
+      scoped_refptr<SessionStorageNamespace> session_storage_namespace,
       void* platform_data);
 
   bool UpdateTitleForEntry(NavigationEntryImpl* entry,
index 43211db..ccb65d9 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <Evas.h>
 
+#include "base/memory/scoped_ptr.h"
 #include "content/browser/renderer_host/render_view_host_delegate_view.h"
 #include "content/browser/web_contents/web_contents_view.h"
 #include "content/common/content_export.h"
index 3332d7f..a110905 100644 (file)
@@ -9,6 +9,7 @@
 #include <Elementary.h>
 
 #include "base/files/file_path.h"
+#include "base/memory/scoped_ptr.h"
 #include "base/strings/string16.h"
 #include "third_party/skia/include/core/SkBitmap.h"
 #include "third_party/WebKit/public/web/WebDragOperation.h"
diff --git a/tizen_src/chromium_impl/content/child/npapi/webplugin_delegate_impl_efl.cc b/tizen_src/chromium_impl/content/child/npapi/webplugin_delegate_impl_efl.cc
deleted file mode 100644 (file)
index a700e7c..0000000
+++ /dev/null
@@ -1,66 +0,0 @@
-// 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.
-
-#include "content/child/npapi/webplugin_delegate_impl.h"
-
-#include "content/child/npapi/plugin_instance.h"
-#include "content/common/cursors/webcursor.h"
-
-using blink::WebInputEvent;
-
-namespace content {
-
-WebPluginDelegateImpl::WebPluginDelegateImpl(WebPlugin* plugin,
-                                             PluginInstance* instance) {
-}
-
-WebPluginDelegateImpl::~WebPluginDelegateImpl() {
-}
-
-bool WebPluginDelegateImpl::PlatformInitialize() {
-  return true;
-}
-
-void WebPluginDelegateImpl::PlatformDestroyInstance() {
-  // Nothing to do here.
-}
-
-void WebPluginDelegateImpl::Paint(SkCanvas* canvas, const gfx::Rect& rect) {
-}
-
-bool WebPluginDelegateImpl::WindowedCreatePlugin() {
-  return true;
-}
-
-void WebPluginDelegateImpl::WindowedDestroyWindow() {
-}
-
-bool WebPluginDelegateImpl::WindowedReposition(
-    const gfx::Rect& window_rect,
-    const gfx::Rect& clip_rect) {
-  return true;
-}
-
-void WebPluginDelegateImpl::WindowedSetWindow() {
-}
-
-void WebPluginDelegateImpl::WindowlessUpdateGeometry(
-    const gfx::Rect& window_rect,
-    const gfx::Rect& clip_rect) {
-}
-
-void WebPluginDelegateImpl::WindowlessPaint(gfx::NativeDrawingContext context,
-                                            const gfx::Rect& damage_rect) {
-}
-
-bool WebPluginDelegateImpl::PlatformSetPluginHasFocus(bool focused) {
-  return true;
-}
-
-bool WebPluginDelegateImpl::PlatformHandleInputEvent(
-    const WebInputEvent& event, WebCursor::CursorInfo* cursor_info) {
-  return false;
-}
-
-}  // namespace content
index e1940ee..b7b838a 100644 (file)
@@ -7,11 +7,12 @@
 #include <cstdlib>
 
 #include "base/environment.h"
-#include "base/path_service.h"
 #include "base/files/file_path.h"
 #include "base/files/file_util.h"
+#include "base/memory/free_deleter.h"
 #include "base/memory/scoped_ptr.h"
 #include "base/nix/xdg_util.h"
+#include "base/path_service.h"
 #include "build/tizen_version.h"
 
 #if defined(OS_TIZEN)
diff --git a/tizen_src/chromium_impl/content/content_child_efl.gypi b/tizen_src/chromium_impl/content/content_child_efl.gypi
deleted file mode 100644 (file)
index 1ef5697..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-# Copyright (c) 2015 Samsung Electronics. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-{
-  'sources': [
-    'child/npapi/webplugin_delegate_impl_efl.cc',
-  ],
-}
index bdea8ac..b46bafb 100644 (file)
@@ -86,7 +86,6 @@
         # this implicitly means component="shared_library"
         'includes': [
            'content_browser_efl.gypi',
-           'content_child_efl.gypi',
            'content_common_efl.gypi',
            'content_gpu_efl.gypi',
            'content_renderer_efl.gypi',
         ]
       }],
 
-      ['_target_name=="content_child"', {
-        'includes': [
-          'content_child_efl.gypi'
-        ]
-      }],
-
       ['_target_name=="content_shell_lib"', {
         'sources': [
           'shell/browser/shell_efl.cc',
index f1aab95..a0c6e02 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-#include "content/common/gpu/gpu_host_messages.h"
+#include "content/common/gpu_host_messages.h"
 #include "content/gpu/gpu_process.h"
 #include "content/gpu/shared_mailbox_manager.h"
 #include "ui/gl/gl_shared_context_efl.h"
 namespace content {
 
 struct GpuChildThreadEfl : public content::GpuChildThread {
-  explicit GpuChildThreadEfl(const content::InProcessChildThreadParams& params,
+  explicit GpuChildThreadEfl(const gpu::GpuPreferences& gpu_preferences,
+                             const content::InProcessChildThreadParams& params,
                              GpuMemoryBufferFactory* gpu_memory_buffer_factory,
                              gpu::SyncPointManager* sync_point_manager)
-      : GpuChildThread(params, gpu_memory_buffer_factory, sync_point_manager) { }
+      : GpuChildThread(gpu_preferences,
+                       params,
+                       gpu_memory_buffer_factory,
+                       sync_point_manager) {}
 
   bool OnControlMessageReceived(const IPC::Message& msg) override {
     bool handled = true;
@@ -40,8 +44,8 @@ struct GpuChildThreadEfl : public content::GpuChildThread {
     return GpuChildThread::OnControlMessageReceived(msg);
   }
 
-  void OnInitialize() {
-    GpuChildThread::OnInitialize();
+  void OnInitialize(const gpu::GpuPreferences& preferences) {
+    GpuChildThread::OnInitialize(preferences);
 
     // Override GpuChannelManager's default shared group and mailbox instances.
     gpu_channel_manager_->share_group_ =
@@ -52,23 +56,28 @@ struct GpuChildThreadEfl : public content::GpuChildThread {
 };
 
 struct InProcessGpuThreadEfl : public content::InProcessGpuThread {
-
-  explicit InProcessGpuThreadEfl(const content::InProcessChildThreadParams& params,
-                                 gpu::SyncPointManager* sync_point_manager_override)
-      : InProcessGpuThread(params, sync_point_manager_override) { }
+  explicit InProcessGpuThreadEfl(
+      const content::InProcessChildThreadParams& params,
+      const gpu::GpuPreferences& gpu_preferences,
+      gpu::SyncPointManager* sync_point_manager_override)
+      : InProcessGpuThread(params,
+                           gpu_preferences,
+                           sync_point_manager_override) {}
 
   void Init() override {
     gpu_process_ = new content::GpuProcess(base::ThreadPriority::NORMAL);
     // The process object takes ownership of the thread object, so do not
     // save and delete the pointer.
-    gpu_process_->set_main_thread(new GpuChildThreadEfl(params_,
-                                                        gpu_memory_buffer_factory_.get(),
-                                                        sync_point_manager_override_));
+    gpu_process_->set_main_thread(new GpuChildThreadEfl(
+        gpu_preferences_, params_, gpu_memory_buffer_factory_.get(),
+        sync_point_manager_override_));
   }
 };
 
-base::Thread* CreateInProcessGpuThread(const content::InProcessChildThreadParams& params) {
-  return new InProcessGpuThreadEfl(params, nullptr);
+base::Thread* CreateInProcessGpuThread(
+    const content::InProcessChildThreadParams& params,
+    const gpu::GpuPreferences& gpu_preferences) {
+  return new InProcessGpuThreadEfl(params, gpu_preferences, nullptr);
 }
 
 } // namespace content
index 68994b6..ba81742 100644 (file)
@@ -38,8 +38,7 @@ class Shell::Impl {
     elm_win_resize_object_add(window, box);
     evas_object_show(box);
 
-    if (!base::CommandLine::ForCurrentProcess()->
-            HasSwitch(switches::kRunLayoutTest))
+    if (!switches::IsRunLayoutTestSwitchPresent())
       CreateURLBar(box);
 
     Evas_Object* view = static_cast<Evas_Object*>(
@@ -229,8 +228,7 @@ bool Shell::PlatformHandleContextMenu(
 
 JavaScriptDialogManager* Shell::GetJavaScriptDialogManager(WebContents* source) {
   if (!dialog_manager_) {
-    const base::CommandLine& command_line = *base::CommandLine::ForCurrentProcess();
-    if (command_line.HasSwitch(switches::kRunLayoutTest)) {
+    if (switches::IsRunLayoutTestSwitchPresent()) {
       dialog_manager_.reset(new LayoutTestJavaScriptDialogManager);
     } else  {
       dialog_manager_.reset(new JavaScriptDialogManagerEfl);
index 8125a26..4faa4ca 100644 (file)
@@ -100,8 +100,7 @@ ShellWebContentsViewDelegate::~ShellWebContentsViewDelegate() {
 void ShellWebContentsViewDelegate::ShowContextMenu(
     RenderFrameHost* render_frame_host,
     const ContextMenuParams& params) {
-  if (base::CommandLine::ForCurrentProcess()->
-          HasSwitch(switches::kRunLayoutTest))
+  if (switches::IsRunLayoutTestSwitchPresent())
     return;
 
   if (g_context_menu) {
diff --git a/tizen_src/chromium_impl/ui/ozone/media_ozone_platform_efl.cc b/tizen_src/chromium_impl/ui/ozone/media_ozone_platform_efl.cc
deleted file mode 100644 (file)
index 1b307e7..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-// Copyright (c) 2015 Samsung Electronics. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "media/ozone/media_ozone_platform.h"
-
-namespace media {
-
-namespace {
-
-class MediaOzonePlatformEfl : public MediaOzonePlatform {
- public:
-  MediaOzonePlatformEfl() {}
-  ~MediaOzonePlatformEfl() override {}
-
- private:
-  DISALLOW_COPY_AND_ASSIGN(MediaOzonePlatformEfl);
-};
-
-} // namespace
-
-MediaOzonePlatform* CreateMediaOzonePlatformEfl() {
-  return new MediaOzonePlatformEfl;
-}
-
-} // namespace media
index 889b13f..b5e4185 100644 (file)
@@ -31,7 +31,6 @@
       'sources': [
         'client_native_pixmap_factory_efl.h',
         'client_native_pixmap_factory_efl.cc',
-        'media_ozone_platform_efl.cc',
         'ozone_platform_efl.h',
         'ozone_platform_efl.cc',
         'surface_factory_efl.h',
index caf1eb8..d0995aa 100644 (file)
@@ -7,7 +7,7 @@
 
 #include "base/callback.h"
 #include "base/memory/weak_ptr.h"
-#include "content/public/common/permission_status.mojom.h"
+#include "third_party/WebKit/public/platform/modules/permissions/permission_status.mojom.h"
 
 class GURL;
 
@@ -21,10 +21,11 @@ class GeolocationPermissionContextEfl final {
   // The renderer is requesting permission to use Geolocation.
   // When the answer to a permission request has been determined, |callback|
   // should be called with the result.
-  void RequestPermission(int render_process_id,
-                         int render_frame_id,
-                         const GURL& requesting_frame,
-                         base::Callback<void(PermissionStatus)> callback) const;
+  void RequestPermission(
+      int render_process_id,
+      int render_frame_id,
+      const GURL& requesting_frame,
+      base::Callback<void(blink::mojom::PermissionStatus)> callback) const;
 
   // The renderer is cancelling a pending permission request.
   void CancelPermissionRequest(int render_process_id,
@@ -33,10 +34,11 @@ class GeolocationPermissionContextEfl final {
                                const GURL& requesting_frame) const;
 
  private:
-  void RequestPermissionOnUIThread(int render_process_id,
-                                   int render_frame_id,
-                                   const GURL& requesting_frame,
-                                   base::Callback<void(PermissionStatus)> callback) const;
+  void RequestPermissionOnUIThread(
+      int render_process_id,
+      int render_frame_id,
+      const GURL& requesting_frame,
+      base::Callback<void(blink::mojom::PermissionStatus)> callback) const;
 
   mutable base::WeakPtrFactory<GeolocationPermissionContextEfl>
       weak_ptr_factory_;
index 8ab4ad7..61374ac 100644 (file)
@@ -77,7 +77,6 @@ JavaScriptDialogManagerEfl::~JavaScriptDialogManagerEfl() {
 
 void JavaScriptDialogManagerEfl::RunJavaScriptDialog(content::WebContents* web_contents,
                                                      const GURL& origin_url,
-                                                     const std::string& accept_lang,
                                                      content::JavaScriptMessageType javascript_message_type,
                                                      const base::string16& message_text,
                                                      const base::string16& default_prompt_text,
@@ -120,7 +119,6 @@ void JavaScriptDialogManagerEfl::RunJavaScriptDialog(content::WebContents* web_c
 
   dialog_.reset(JavaScriptModalDialogEfl::CreateDialog(web_contents,
                                                        origin_url,
-                                                       accept_lang,
                                                        type,
                                                        message_text,
                                                        default_prompt_text,
@@ -156,7 +154,6 @@ void JavaScriptDialogManagerEfl::SetPopupSize(int width, int height) {
 }
 
 void JavaScriptDialogManagerEfl::RunBeforeUnloadDialog(content::WebContents* web_contents,
-                                     const base::string16& message_text,
                                      bool is_reload,
                                      const DialogClosedCallback& callback) {
   DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
@@ -166,12 +163,8 @@ void JavaScriptDialogManagerEfl::RunBeforeUnloadDialog(content::WebContents* web
   wv->SmartCallback<EWebViewCallbacks::PopupReplyWaitStart>().call(0);
 
   dialog_.reset(JavaScriptModalDialogEfl::CreateDialog(
-      web_contents,
-      GURL(),
-      std::string(),
-      JavaScriptModalDialogEfl::NAVIGATION,
+      web_contents, GURL(), JavaScriptModalDialogEfl::NAVIGATION,
       base::UTF8ToUTF16(
           std::string(dgettext("WebKit", "IDS_WEBVIEW_BEFOREUNLOAD_MESSAGE"))),
-      message_text,
-      callback));
+      base::string16(), callback));
 }
index fc0b94a..8b514bc 100644 (file)
@@ -48,7 +48,6 @@ class JavaScriptDialogManagerEfl: public content::JavaScriptDialogManager {
   virtual void RunJavaScriptDialog(
         content::WebContents* web_contents,
         const GURL& origin_url,
-        const std::string& accept_lang,
         content::JavaScriptMessageType javascript_message_type,
         const base::string16& message_text,
         const base::string16& default_prompt_text,
@@ -56,7 +55,6 @@ class JavaScriptDialogManagerEfl: public content::JavaScriptDialogManager {
         bool* did_suppress_message) override;
 
   virtual void RunBeforeUnloadDialog(content::WebContents* web_contents,
-                                     const base::string16& message_text,
                                      bool is_reload,
                                      const DialogClosedCallback& callback) override;
 
old mode 100755 (executable)
new mode 100644 (file)
index 5ed201d..2550cca
@@ -19,13 +19,13 @@ using web_contents_utils::WebViewFromWebContents;
 //static
 JavaScriptModalDialogEfl* JavaScriptModalDialogEfl::CreateDialog(content::WebContents* web_contents,
                            const GURL& origin_url,
-                           const std::string& accept_lang,
                            Type type,
                            const base::string16& message_text,
                            const base::string16& default_prompt_text,
                            const content::JavaScriptDialogManager::DialogClosedCallback& callback) {
-  JavaScriptModalDialogEfl* dialog = new JavaScriptModalDialogEfl(web_contents,
-      origin_url, accept_lang, type, message_text, default_prompt_text, callback);
+  JavaScriptModalDialogEfl* dialog =
+      new JavaScriptModalDialogEfl(web_contents, origin_url, type, message_text,
+                                   default_prompt_text, callback);
   if (!dialog->ShowJavaScriptDialog()) {
     delete dialog;
     dialog = NULL;
@@ -35,14 +35,12 @@ JavaScriptModalDialogEfl* JavaScriptModalDialogEfl::CreateDialog(content::WebCon
 
 JavaScriptModalDialogEfl::JavaScriptModalDialogEfl(content::WebContents* web_contents,
                                                    const GURL& origin_url,
-                                                   const std::string& accept_lang,
                                                    Type type,
                                                    const base::string16& message_text,
                                                    const base::string16& default_prompt_text,
                                                    const content::JavaScriptDialogManager::DialogClosedCallback& callback)
     : callback_(callback)
     , origin_url_(origin_url)
-    , accept_lang_(accept_lang)
     , label_(false)
     , type_(type)
     , message_text_(message_text)
index ddb9101..a89a041 100644 (file)
@@ -40,7 +40,6 @@ class JavaScriptModalDialogEfl {
   static void javascriptPopupResizeCallback(void *data, Evas *e, Evas_Object *obj, void *event_info);
   static JavaScriptModalDialogEfl* CreateDialog(content::WebContents* web_contents,
                            const GURL& origin_url,
-                           const std::string& accept_lang,
                            Type type,
                            const base::string16& message_text,
                            const base::string16& default_prompt_text,
@@ -57,7 +56,6 @@ class JavaScriptModalDialogEfl {
  private:
   JavaScriptModalDialogEfl(content::WebContents* web_contents,
                            const GURL& origin_url,
-                           const std::string& accept_lang,
                            Type type,
                            const base::string16& message_text,
                            const base::string16& default_prompt_text,
@@ -65,7 +63,6 @@ class JavaScriptModalDialogEfl {
 
   content::JavaScriptDialogManager::DialogClosedCallback callback_;
   GURL origin_url_;
-  std::string accept_lang_;
   bool label_;
   Type type_;
   base::string16 message_text_;
index debeb4e..b5a37ad 100644 (file)
@@ -14,6 +14,7 @@
 #include "public/ewk_notification.h"
 
 using web_contents_utils::WebViewFromWebContents;
+using namespace blink::mojom;
 
 namespace content {
 
@@ -233,8 +234,7 @@ bool NotificationControllerEfl::IsNotificationPresent(const GURL& origin,
 void NotificationControllerEfl::RequestPermission(
     WebContents* web_contents,
     const GURL& requesting_frame,
-    const base::Callback<void(content::PermissionStatus)>& result_callback) {
-
+    const base::Callback<void(PermissionStatus)>& result_callback) {
   EWebView* web_view = WebViewFromWebContents(web_contents);
   if (!web_view) {
     LOG(ERROR) << "Dropping PermissionNotification request caused by lack "
index a26f214..355b807 100644 (file)
@@ -15,8 +15,8 @@
 #include "base/synchronization/lock.h"
 #include "content/public/browser/desktop_notification_delegate.h"
 #include "content/public/browser/platform_notification_service.h"
-#include "content/public/common/permission_status.mojom.h"
 #include "public/ewk_notification.h"
+#include "third_party/WebKit/public/platform/modules/permissions/permission_status.mojom.h"
 #include "url/gurl.h"
 
 namespace content {
@@ -76,7 +76,8 @@ class NotificationControllerEfl: public PlatformNotificationService {
 
   void RequestPermission(WebContents* web_contents,
                          const GURL& requesting_frame,
-                         const base::Callback<void(PermissionStatus)>& result_callback);
+                         const base::Callback<void(
+                             blink::mojom::PermissionStatus)>& result_callback);
 
   void SetNotificationCallbacks(Ewk_Notification_Show_Callback show_callback,
       Ewk_Notification_Cancel_Callback close_callback, void* user_data);
index a2ca946..8db5612 100644 (file)
@@ -17,6 +17,8 @@
 #include "content/public/browser/web_contents.h"
 #include "ewk_global_data.h"
 
+using namespace blink::mojom;
+
 namespace content {
 
 PermissionManagerEfl::PermissionManagerEfl() {
index 1390d59..faa8a56 100644 (file)
@@ -21,18 +21,20 @@ class CONTENT_EXPORT PermissionManagerEfl : public PermissionManager {
       PermissionType permission,
       content::RenderFrameHost* render_frame_host,
       const GURL& requesting_origin,
-      const base::Callback<void(PermissionStatus)>& callback) override;
+      const base::Callback<void(blink::mojom::PermissionStatus)>& callback)
+      override;
 
   int RequestPermissions(
       const std::vector<PermissionType>& permission,
       RenderFrameHost* render_frame_host,
       const GURL& requesting_origin,
-      const base::Callback<void(
-        const std::vector<PermissionStatus>&)>& callback) override;
+      const base::Callback<
+          void(const std::vector<blink::mojom::PermissionStatus>&)>& callback)
+      override;
 
   void CancelPermissionRequest(int request_id) override;
 
-  PermissionStatus GetPermissionStatus(
+  blink::mojom::PermissionStatus GetPermissionStatus(
       PermissionType permission,
       const GURL& requesting_origin,
       const GURL& embedding_origin) override;
@@ -49,10 +51,11 @@ class CONTENT_EXPORT PermissionManagerEfl : public PermissionManager {
   // pair { requesting_origin, embedding_origin } changes.
   // Returns the subscription_id to be used to unsubscribe.
   int SubscribePermissionStatusChange(
-        PermissionType permission,
-        const GURL& requesting_origin,
-        const GURL& embedding_origin,
-        const base::Callback<void(PermissionStatus)>& callback) override;
+      PermissionType permission,
+      const GURL& requesting_origin,
+      const GURL& embedding_origin,
+      const base::Callback<void(blink::mojom::PermissionStatus)>& callback)
+      override;
 
   void UnsubscribePermissionStatusChange(int subscription_id) override;
 
index f541e0d..559855f 100644 (file)
@@ -5,6 +5,7 @@
 #ifndef Vibration_Provider_Client_h
 #define Vibration_Provider_Client_h
 
+#include "base/macros.h"
 #include "base/memory/scoped_ptr.h"
 #include "device/vibration/vibration_provider_client.h"
 #include "public/ewk_context.h"
index c7ca857..8360bfb 100644 (file)
@@ -128,7 +128,6 @@ BrowserContextEfl::BrowserContextEfl(EWebContext* web_context, bool incognito)
   PrefRegistrySimple* pref_registry = new PrefRegistrySimple();
 
   pref_registry->RegisterBooleanPref(kAutofillEnabled, true);
-  pref_registry->RegisterBooleanPref(kAutofillWalletSyncExperimentEnabled, false);
   pref_registry->RegisterBooleanPref(kAutofillWalletImportEnabled, true);
   pref_registry->RegisterBooleanPref(kPasswordManagerSavingEnabled, true);
 
@@ -143,6 +142,7 @@ BrowserContextEfl::BrowserContextEfl(EWebContext* web_context, bool incognito)
   autofill::PersonalDataManagerFactory::GetInstance()
       ->PersonalDataManagerAdd(this);
 #endif
+  BrowserContext::Initialize(this, GetPath());
 }
 
 net::URLRequestContextGetter* BrowserContextEfl::GetRequestContext() {
index 00e3dcb..c15a395 100644 (file)
@@ -74,8 +74,6 @@ class BrowserContextEfl
   virtual net::URLRequestContextGetter* GetRequestContext() override;
   URLRequestContextGetterEfl* GetRequestContextEfl()
   { return request_context_getter_.get(); }
-  virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess(int) override
-  { return GetRequestContext(); }
   virtual net::URLRequestContextGetter* GetMediaRequestContext() override
   { return GetRequestContext(); }
   virtual net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess(int) override
@@ -119,6 +117,15 @@ class BrowserContextEfl
   net::URLRequestContextGetter* CreateRequestContext(
       content::ProtocolHandlerMap* protocol_handlers,
       URLRequestInterceptorScopedVector request_interceptors);
+
+  virtual net::URLRequestContextGetter* CreateRequestContextForStoragePartition(
+      const base::FilePath& partition_path,
+      bool in_memory,
+      ProtocolHandlerMap* protocol_handlers,
+      URLRequestInterceptorScopedVector request_interceptors) override {
+    return nullptr;
+  }
+
   void SetCertificate(const char* certificate_file);
   EWebContext* WebContext() const
   { return web_context_; }
index 5570d60..ba98ac1 100644 (file)
@@ -5,6 +5,7 @@
 #ifndef CONTENT_BROWSER_MAIN_PARTS_EFL_H_
 #define CONTENT_BROWSER_MAIN_PARTS_EFL_H_
 
+#include "base/macros.h"
 #include "base/memory/scoped_ptr.h"
 #include "content/public/browser/browser_main_parts.h"
 
index b813e24..7ac36a9 100644 (file)
@@ -7,6 +7,7 @@
 
 #include <string>
 
+#include "base/macros.h"
 #include "base/memory/scoped_ptr.h"
 #include "build/tizen_version.h"
 
index e4f7c0f..8fab5b8 100644 (file)
@@ -62,15 +62,6 @@ BrowserMainParts* ContentBrowserClientEfl::CreateBrowserMainParts(
   return browser_main_parts_efl_;
 }
 
-net::URLRequestContextGetter* ContentBrowserClientEfl::CreateRequestContext(
-      BrowserContext* browser_context,
-      ProtocolHandlerMap* protocol_handlers,
-      URLRequestInterceptorScopedVector request_interceptors) {
-  return static_cast<BrowserContextEfl*>(browser_context)
-      ->CreateRequestContext(protocol_handlers,
-                             std::move(request_interceptors));
-}
-
 AccessTokenStore* ContentBrowserClientEfl::CreateAccessTokenStore() {
   return new AccessTokenStoreEfl();
 }
index 04d0945..632f3bb 100644 (file)
@@ -5,6 +5,7 @@
 #ifndef CONTENT_BROWSER_CLIENT_EFL
 #define CONTENT_BROWSER_CLIENT_EFL
 
+#include "content/public/browser/browser_context.h"
 #include "content/public/browser/content_browser_client.h"
 #include "third_party/WebKit/public/platform/modules/notifications/WebNotificationPermission.h"
 
@@ -33,11 +34,6 @@ class ContentBrowserClientEfl: public ContentBrowserClient {
   virtual BrowserMainParts* CreateBrowserMainParts(
       const MainFunctionParams& parameters) override;
 
-  virtual net::URLRequestContextGetter* CreateRequestContext(
-      BrowserContext* browser_context,
-      ProtocolHandlerMap* protocol_handlers,
-      URLRequestInterceptorScopedVector request_interceptors) override;
-
   virtual AccessTokenStore* CreateAccessTokenStore() override;
 #if defined(OS_TIZEN)
   virtual LocationProvider* OverrideSystemLocationProvider() override;
index f4930cc..11775d7 100644 (file)
@@ -515,7 +515,6 @@ void ContextMenuControllerEfl::OnDiskDownload(
     save_fail_dialog_.reset(JavaScriptModalDialogEfl::CreateDialog(
         &web_contents_,
         GURL(),
-        std::string(),
         JavaScriptModalDialogEfl::ALERT,
         base::UTF8ToUTF16(std::string(dgettext("WebKit", "IDS_WEBVIEW_POP_FAIL"))),
         base::string16(),
@@ -543,7 +542,6 @@ void ContextMenuControllerEfl::OnDownloadUpdated(content::DownloadItem* download
       file_saved_dialog_.reset(JavaScriptModalDialogEfl::CreateDialog(
           &web_contents_,
           GURL(),
-          std::string(),
           JavaScriptModalDialogEfl::ALERT,
           base::UTF8ToUTF16(std::string(dgettext("WebKit", "IDS_WEBVIEW_POP_SAVED"))),
           base::string16(),
@@ -812,7 +810,7 @@ void ContextMenuControllerEfl::MenuItemSelected(ContextMenuItemEfl* menu_item)
       break;
     }
     case EWK_CONTEXT_MENU_ITEM_TAG_RELOAD: {
-      webview_->ReloadIgnoringCache();
+      webview_->ReloadBypassingCache();
       break;
     }
     case EWK_CONTEXT_MENU_ITEM_TAG_COPY: {
index c504e88..3997f07 100644 (file)
@@ -87,12 +87,12 @@ void CookieManager::SetRequestContextGetter(
 void CookieManager::DeleteSessionCookiesOnIOThread() {
   DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::IO));
 
-  scoped_refptr<net::CookieStore> cookie_store = GetCookieStore();
+  scoped_ptr<net::CookieStore> cookie_store = GetCookieStore();
   if (cookie_store.get())
     cookie_store->DeleteSessionCookiesAsync(base::Callback<void(int)>());
 }
 
-static void DeleteCookiesOnIOThread(scoped_refptr<net::CookieStore> cookie_store,
+static void DeleteCookiesOnIOThread(scoped_ptr<net::CookieStore> cookie_store,
                                     const std::string& url,
                                     const std::string& cookie_name) {
   DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
@@ -117,13 +117,12 @@ void CookieManager::DeleteCookiesAsync(const std::string& url,
                                        const std::string& cookie_name)
 {
   DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
-  scoped_refptr<net::CookieStore> cookie_store = GetCookieStore();
+  scoped_ptr<net::CookieStore> cookie_store = GetCookieStore();
   if (cookie_store.get()) {
-    BrowserThread::PostTask(BrowserThread::IO, FROM_HERE,
-                            base::Bind(DeleteCookiesOnIOThread,
-                                       cookie_store,
-                                       url,
-                                       cookie_name));
+    BrowserThread::PostTask(
+        BrowserThread::IO, FROM_HERE,
+        base::Bind(DeleteCookiesOnIOThread,
+                   base::Passed(std::move(cookie_store)), url, cookie_name));
   }
 }
 
@@ -169,17 +168,17 @@ void CookieManager::GetAcceptPolicyAsync(Ewk_Cookie_Manager_Policy_Async_Get_Cb
 void CookieManager::GetHostNamesWithCookiesAsync(AsyncHostnamesGetCb callback, void *data) {
   DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
   host_callback_queue_.push(new EwkGetHostCallback(callback, data));
-  scoped_refptr<net::CookieStore> cookie_store = GetCookieStore();
+  scoped_ptr<net::CookieStore> cookie_store = GetCookieStore();
   if (cookie_store.get()) {
-    BrowserThread::PostTask(BrowserThread::IO,
-                            FROM_HERE,
-                            base::Bind(&CookieManager::FetchCookiesOnIOThread,
-                                       GetSharedThis(),
-                                       cookie_store));
+    BrowserThread::PostTask(
+        BrowserThread::IO, FROM_HERE,
+        base::Bind(&CookieManager::FetchCookiesOnIOThread, GetSharedThis(),
+                   base::Passed(std::move(cookie_store))));
   }
 }
 
-void CookieManager::FetchCookiesOnIOThread(scoped_refptr<net::CookieStore> cookie_store) {
+void CookieManager::FetchCookiesOnIOThread(
+    scoped_ptr<net::CookieStore> cookie_store) {
   DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
 
   if (cookie_store.get()) {
@@ -289,7 +288,7 @@ static void SignalGetCookieValueCompleted(base::WaitableEvent* completion,
   completion->Signal();
 }
 
-static void GetCookieValueOnIOThread(scoped_refptr<net::CookieStore> cookie_store,
+static void GetCookieValueOnIOThread(scoped_ptr<net::CookieStore> cookie_store,
                                      const GURL& host,
                                      std::string* result,
                                      base::WaitableEvent* completion) {
@@ -311,7 +310,7 @@ static void GetCookieValueOnIOThread(scoped_refptr<net::CookieStore> cookie_stor
 
 std::string CookieManager::GetCookiesForURL(const std::string& url) {
   DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
-  scoped_refptr<net::CookieStore> cookie_store = GetCookieStore();
+  scoped_ptr<net::CookieStore> cookie_store = GetCookieStore();
   if (!cookie_store.get())
     return std::string();
 
@@ -319,10 +318,8 @@ std::string CookieManager::GetCookiesForURL(const std::string& url) {
   base::WaitableEvent completion(false, false);
   BrowserThread::PostTask(BrowserThread::IO, FROM_HERE,
                           base::Bind(GetCookieValueOnIOThread,
-                                     cookie_store,
-                                     GURL(url),
-                                     &cookie_value,
-                                     &completion));
+                                     base::Passed(std::move(cookie_store)),
+                                     GURL(url), &cookie_value, &completion));
   // allow wait temporarily.
   ScopedAllowWaitForLegacyWebViewApi allow_wait;
   completion.Wait();
@@ -337,13 +334,12 @@ scoped_refptr<content::URLRequestContextGetterEfl> CookieManager::GetContextGett
   return scoped_refptr<content::URLRequestContextGetterEfl>(request_context_getter_.get());
 }
 
-scoped_refptr<net::CookieStore> CookieManager::GetCookieStore() const {
+scoped_ptr<net::CookieStore> CookieManager::GetCookieStore() const {
   scoped_refptr<content::URLRequestContextGetterEfl> request_context_getter = GetContextGetter();
   if (request_context_getter.get()) {
-    return request_context_getter->
-           GetURLRequestContext()->
-           cookie_store();
+    return scoped_ptr<net::CookieStore>(
+        request_context_getter->GetURLRequestContext()->cookie_store());
   } else {
-    return scoped_refptr<net::CookieStore>();
+    return scoped_ptr<net::CookieStore>();
   }
 }
index 8ec462e..65c9da3 100644 (file)
@@ -101,12 +101,12 @@ class CookieManager : public base::RefCountedThreadSafe<CookieManager> {
                     const GURL& first_party_url,
                     bool setting_cookie);
   // Fetch the cookies. This must be called in the IO thread.
-  void FetchCookiesOnIOThread(scoped_refptr<net::CookieStore> cookie_store);
+  void FetchCookiesOnIOThread(scoped_ptr<net::CookieStore> cookie_store);
   void OnFetchComplete(const net::CookieList& cookies);
 
   scoped_refptr<CookieManager> GetSharedThis();
   scoped_refptr<content::URLRequestContextGetterEfl> GetContextGetter() const;
-  scoped_refptr<net::CookieStore> GetCookieStore() const;
+  scoped_ptr<net::CookieStore> GetCookieStore() const;
   scoped_refptr<content::URLRequestContextGetterEfl> request_context_getter_;
   //cookie policy information
   base::Lock lock_;
index 3038c06..44f6c38 100644 (file)
@@ -319,7 +319,12 @@ bool EWebContext::GetNetworkCacheEnable() const {
 
 void EWebContext::AddExtraPluginDir(const char *path) {
 #if defined(ENABLE_PLUGINS)
+#if !defined(EWK_BRINGUP)
+  // [M51_2704] The AddExtraPluginDir API was removed in content::PluginList
+  //            class. It will be fixed by webview team.
+  //            FIXME: http://suprem.sec.samsung.net/jira/browse/TWF-1132
   content::PluginList::Singleton()->AddExtraPluginDir(base::FilePath(path));
+#endif  // EWK_BRINGUP
 #endif
 }
 
@@ -367,7 +372,7 @@ void EWebContext::SetProxyUri(const char* uri) {
   BrowserThread::PostTask(
       BrowserThread::IO, FROM_HERE,
       base::Bind(&SetProxyConfigCallbackOnIOThread, &done,
-                 make_scoped_refptr(browser_context()->GetRequestContext()),
+                 base::RetainedRef(browser_context()->GetRequestContext()),
                  config));
   done.Wait();
 }
index 8f18783..508b40a 100644 (file)
@@ -337,8 +337,8 @@ void EWebView::Reload() {
   web_contents_->GetController().Reload(true);
 }
 
-void EWebView::ReloadIgnoringCache() {
-  web_contents_->GetController().ReloadIgnoringCache(true);
+void EWebView::ReloadBypassingCache() {
+  web_contents_->GetController().ReloadBypassingCache(true);
 }
 
 Eina_Bool EWebView::CanGoBack() {
index 3545c13..09836c9 100644 (file)
@@ -201,7 +201,7 @@ class EWebView {
   void SetURL(const GURL& url);
   const GURL& GetURL() const;
   void Reload();
-  void ReloadIgnoringCache();
+  void ReloadBypassingCache();
   Eina_Bool CanGoBack();
   Eina_Bool CanGoForward();
   Eina_Bool HasFocus() const;
index bf7464b..75f81ab 100644 (file)
@@ -5,7 +5,7 @@ includedir=${prefix}/include
 
 Name: chromium-ewk
 Description: EWK API based on chromium-efl engine
-Version: 50.2661.0.14-1
+Version: 51.2704.0.17-1
 Requires: chromium-efl
 Libs: -L${libdir} -lchromium-ewk
 Cflags: -I${includedir}/chromium-ewk
index bca0649..e5eb584 100644 (file)
@@ -8,13 +8,12 @@
 #include <content/public/browser/browser_thread.h>
 
 using content::BrowserThread;
+using namespace blink::mojom;
 
 _Ewk_Geolocation_Permission_Request::_Ewk_Geolocation_Permission_Request(
-      const GURL& origin_url,
-      base::Callback<void(content::PermissionStatus)> callback)
-    : origin_(new _Ewk_Security_Origin(origin_url)),
-    callback_(callback) {
-}
+    const GURL& origin_url,
+    base::Callback<void(PermissionStatus)> callback)
+    : origin_(new _Ewk_Security_Origin(origin_url)), callback_(callback) {}
 
 _Ewk_Geolocation_Permission_Request::~_Ewk_Geolocation_Permission_Request() {
   CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
@@ -22,7 +21,5 @@ _Ewk_Geolocation_Permission_Request::~_Ewk_Geolocation_Permission_Request() {
 }
 
 void _Ewk_Geolocation_Permission_Request::runCallback(bool allowed) {
-  callback_.Run(allowed?
-      content::PermissionStatus::GRANTED:
-      content::PermissionStatus::DENIED);
+  callback_.Run(allowed ? PermissionStatus::GRANTED : PermissionStatus::DENIED);
 }
index f3cf3b2..4b954ef 100644 (file)
@@ -6,8 +6,8 @@
 #define ewk_geolocation_private_h
 
 #include "base/callback.h"
-#include "content/public/common/permission_status.mojom.h"
 #include "ewk_suspendable_object.h"
+#include "third_party/WebKit/public/platform/modules/permissions/permission_status.mojom.h"
 #include "url/gurl.h"
 
 class _Ewk_Security_Origin;
@@ -17,8 +17,9 @@ class _Ewk_Security_Origin;
 // to be called once the permission is determined by app.
 class _Ewk_Geolocation_Permission_Request : public Ewk_Suspendable_Object{
  public:
-  _Ewk_Geolocation_Permission_Request(const GURL& origin_url,
-                                      base::Callback<void(content::PermissionStatus)> callback);
+  _Ewk_Geolocation_Permission_Request(
+      const GURL& origin_url,
+      base::Callback<void(blink::mojom::PermissionStatus)> callback);
   ~_Ewk_Geolocation_Permission_Request();
 
   _Ewk_Security_Origin* GetOrigin() const { return origin_; }
@@ -28,7 +29,7 @@ class _Ewk_Geolocation_Permission_Request : public Ewk_Suspendable_Object{
 
   void runCallback(bool allowed) override;
 
-  base::Callback<void(content::PermissionStatus)> callback_;
+  base::Callback<void(blink::mojom::PermissionStatus)> callback_;
 };
 
 #endif // ewk_geolocation_private_h
index 90fb725..44ddf77 100644 (file)
@@ -8,6 +8,7 @@
 #include "third_party/skia/include/core/SkImageEncoder.h"
 
 using content::BrowserThread;
+using namespace blink::mojom;
 
 Ewk_Notification::Ewk_Notification(
     const std::string& body,
@@ -78,15 +79,13 @@ bool Ewk_Notification::SaveAsPng(const char* path) const {
 
 Ewk_Notification_Permission_Request::Ewk_Notification_Permission_Request(
     Evas_Object* webview,
-    const base::Callback<void(content::PermissionStatus)>& callback,
+    const base::Callback<void(PermissionStatus)>& callback,
     const GURL& source_origin)
-    : webview_(webview)
-    , origin_(new _Ewk_Security_Origin(source_origin))
-    , callback_(callback)
-    , decided_(false)
-    , suspended_(false)
-{
-}
+    : webview_(webview),
+      origin_(new _Ewk_Security_Origin(source_origin)),
+      callback_(callback),
+      decided_(false),
+      suspended_(false) {}
 
 Ewk_Notification_Permission_Request::~Ewk_Notification_Permission_Request() {
 }
@@ -122,9 +121,7 @@ bool Ewk_Notification_Permission_Request::Reply(bool allow) {
 
   decided_ = true;
 
-  callback_.Run(allow?
-      content::PermissionStatus::GRANTED:
-      content::PermissionStatus::DENIED);
+  callback_.Run(allow ? PermissionStatus::GRANTED : PermissionStatus::DENIED);
 
   if (suspended_) {
     // If decision was suspended, then it was not deleted by the creator
index 924e3f1..3a9bc7c 100644 (file)
@@ -11,9 +11,9 @@
 #include "base/callback.h"
 #include "base/macros.h"
 #include "base/memory/scoped_ptr.h"
-#include "content/public/common/permission_status.mojom.h"
 #include "private/ewk_security_origin_private.h"
 #include "third_party/skia/include/core/SkBitmap.h"
+#include "third_party/WebKit/public/platform/modules/permissions/permission_status.mojom.h"
 
 class GURL;
 
@@ -52,9 +52,10 @@ struct Ewk_Notification {
 
 struct Ewk_Notification_Permission_Request {
  public:
-  Ewk_Notification_Permission_Request(Evas_Object* webview,
-                                      const base::Callback<void(content::PermissionStatus)>& callback,
-                                      const GURL& source_origin);
+  Ewk_Notification_Permission_Request(
+      Evas_Object* webview,
+      const base::Callback<void(blink::mojom::PermissionStatus)>& callback,
+      const GURL& source_origin);
   ~Ewk_Notification_Permission_Request();
 
   Evas_Object* GetWebviewEvasObject() const;
@@ -67,7 +68,7 @@ struct Ewk_Notification_Permission_Request {
  private:
   Evas_Object* webview_;
   scoped_ptr<_Ewk_Security_Origin> origin_;
-  base::Callback<void(content::PermissionStatus)> callback_;
+  base::Callback<void(blink::mojom::PermissionStatus)> callback_;
   bool decided_;
   mutable bool suspended_;
 
index 794bffd..49dfe68 100644 (file)
@@ -157,7 +157,7 @@ Eina_Bool ewk_view_reload(Evas_Object *view)
 Eina_Bool ewk_view_reload_bypass_cache(Evas_Object *view)
 {
   EWK_VIEW_IMPL_GET_OR_RETURN(view, impl, false);
-  impl->ReloadIgnoringCache();
+  impl->ReloadBypassingCache();
   return true;
 }
 
index 0765283..1be4304 100644 (file)
@@ -23,8 +23,9 @@ using blink::WebCache;
 using blink::WebRuntimeFeatures;
 using content::RenderThread;
 
-RenderProcessObserverEfl::RenderProcessObserverEfl(ContentRendererClientEfl* content_client)
-    : content_client_(content_client), webkit_initialized_(false) {
+RenderProcessObserverEfl::RenderProcessObserverEfl(
+    ContentRendererClientEfl* content_client)
+    : content_client_(content_client) {
   const base::CommandLine& command_line = *base::CommandLine::ForCurrentProcess();
   if (command_line.HasSwitch(switches::kEnableViewMode))
     WebRuntimeFeatures::enableCSSViewModeMediaFeature(true);
@@ -41,12 +42,6 @@ bool RenderProcessObserverEfl::OnControlMessageReceived(const IPC::Message& mess
   return handled;
 }
 
-void RenderProcessObserverEfl::WebKitInitialized()
-{
-  webkit_initialized_ = true;
-  OnSetCache(pending_cache_params_);
-}
-
 void RenderProcessObserverEfl::OnClearCache()
 {
   WebCache::clear();
@@ -54,10 +49,6 @@ void RenderProcessObserverEfl::OnClearCache()
 
 void RenderProcessObserverEfl::OnSetCache(const CacheParamsEfl& params)
 {
-  pending_cache_params_ = params;
-  if(!webkit_initialized_)
-    return;
-
   WebCache::setCapacities(static_cast<size_t>(params.cache_min_dead_capacity),
     static_cast<size_t>(params.cache_max_dead_capacity),
     static_cast<size_t>(params.cache_total_capacity));
index ea7bd7a..f4f4137 100644 (file)
@@ -21,14 +21,11 @@ class RenderProcessObserverEfl : public content::RenderProcessObserver {
 public:
   explicit RenderProcessObserverEfl(ContentRendererClientEfl* content_client);
   bool OnControlMessageReceived(const IPC::Message& message) override;
-  void WebKitInitialized() override;
   void OnClearCache();
   
 private:
   void OnSetCache(const CacheParamsEfl& params);
   ContentRendererClientEfl* content_client_;
-  bool webkit_initialized_;
-  CacheParamsEfl pending_cache_params_;
 };
 
 #endif
index 3a05c2c..9bdcb25 100644 (file)
@@ -28,6 +28,7 @@
 #include "third_party/WebKit/public/web/WebFormElement.h"
 #include "third_party/WebKit/public/web/WebFrame.h"
 #include "third_party/WebKit/public/web/WebFrameContentDumper.h"
+#include "third_party/WebKit/public/web/WebFrameWidget.h"
 #include "third_party/WebKit/public/web/WebHitTestResult.h"
 #include "third_party/WebKit/public/web/WebInputEvent.h"
 #include "third_party/WebKit/public/web/WebLocalFrame.h"
@@ -238,12 +239,9 @@ void RenderViewObserverEfl::OnUseSettingsFont()
 
 void RenderViewObserverEfl::OnPlainTextGet(int plain_text_get_callback_id)
 {
-  blink::WebFrame* frame = render_view()->GetWebView()->mainFrame();
-  if (!frame)
-    return;
-
   // WebFrameContentDumper should only be used for testing purposes. See http://crbug.com/585164.
-  blink::WebString content = blink::WebFrameContentDumper::dumpFrameTreeAsText(frame->toWebLocalFrame(), INT_MAX);
+  blink::WebString content = blink::WebFrameContentDumper::dumpWebViewAsText(
+      render_view()->GetWebView(), INT_MAX);
   Send(new EwkHostMsg_PlainTextGetContents(render_view()->GetRoutingID(), content.utf8(), plain_text_get_callback_id));
 }
 
@@ -389,14 +387,14 @@ void RenderViewObserverEfl::CheckContentsSize()
 
 void RenderViewObserverEfl::OnSetDrawsTransparentBackground(bool draws_transparent_background)
 {
-  blink::WebView* view = render_view()->GetWebView();
-  if (!view)
+  blink::WebFrameWidget* widget = render_view()->GetWebFrameWidget();
+  if (!widget)
     return;
 
   blink::WebColor backgroundColor = draws_transparent_background ?
       static_cast<blink::WebColor>(0x00000000) : static_cast<blink::WebColor>(0xFFFFFFFF);
 
-  view->setBaseBackgroundColor(backgroundColor);
+  widget->setBaseBackgroundColor(backgroundColor);
 }
 
 void RenderViewObserverEfl::OnWebAppIconUrlGet(int callback_id)
index 810d848..a056bbe 100644 (file)
@@ -162,8 +162,6 @@ net::URLRequestContext* URLRequestContextGetterEfl::GetURLRequestContext() {
         url_request_context_->ssl_config_service();
     network_session_params.http_auth_handler_factory =
         url_request_context_->http_auth_handler_factory();
-    network_session_params.network_delegate =
-        network_delegate_.get();
     network_session_params.http_server_properties =
         url_request_context_->http_server_properties();
     network_session_params.net_log =
@@ -299,9 +297,9 @@ void URLRequestContextGetterEfl::CreateSQLitePersistentCookieStore(
   // Set the new cookie store that will be used for all new requests. The old
   // cookie store, if any, will be automatically flushed and closed when no
   // longer referenced.
-  scoped_refptr<net::CookieMonster> cookie_monster =
-      new net::CookieMonster(persistent_store.get(), NULL);
-  storage_->set_cookie_store(cookie_monster.get());
+  scoped_ptr<net::CookieMonster> cookie_monster(
+      new net::CookieMonster(persistent_store.get(), NULL));
+  storage_->set_cookie_store(std::move(cookie_monster));
 
   if (persistent_store.get() && persist_session_cookies)
     cookie_monster->SetPersistSessionCookies(true);
index bc8384d..16c42af 100644 (file)
@@ -8,12 +8,14 @@
 
 #include "base/memory/scoped_ptr.h"
 #include "base/memory/weak_ptr.h"
+#include "content/public/browser/browser_context.h"
 #include "content/public/browser/browser_thread.h"
 #include "content/public/browser/content_browser_client.h"
 #include "net/base/network_delegate.h"
 #include "net/url_request/url_request_context_getter.h"
 #include "net/url_request/url_request_context_storage.h"
 #include "net/proxy/proxy_config_service.h"
+#include "net/url_request/url_request_job_factory_impl.h"
 #include "public/ewk_cookie_manager.h"
 
 namespace net {
@@ -67,7 +69,7 @@ class URLRequestContextGetterEfl : public net::URLRequestContextGetter {
   net::NetLog* net_log_;
 
   base::FilePath cookie_store_path_;
-  scoped_refptr<net::CookieStore> cookie_store_;
+  scoped_ptr<net::CookieStore> cookie_store_;
 
   scoped_ptr<net::HttpNetworkSession> http_network_session_;
   scoped_ptr<net::ProxyConfigService> proxy_config_service_;
index dcaac1b..1ad8c0a 100644 (file)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
-<manifest xmlns="http://tizen.org/ns/packages" package="chromium-efl" version="50.2661.0.14">
+<manifest xmlns="http://tizen.org/ns/packages" package="chromium-efl" version="51.2704.0.17">
     <label> mini browser application for chromium-efl package </label>
     <author href="www.samsung.com" email="sns.park@samsung.com">SWC</author>
     <description> mini browser application based on chromium-efl </description>
index 4e8e922..842aeb0 100644 (file)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
-<manifest xmlns="http://tizen.org/ns/packages" api-version="3.0" package="org.tizen.chromium-efl" version="50.2661.0.14">
+<manifest xmlns="http://tizen.org/ns/packages" api-version="3.0" package="org.tizen.chromium-efl" version="51.2704.0.17">
     <label> mini browser application for chromium-efl package </label>
     <author href="www.samsung.com" email="sns.park@samsung.com">SWC</author>
     <description> mini browser application based on chromium-efl </description>
index 6087d8d..0003173 100644 (file)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
-<manifest xmlns="http://tizen.org/ns/packages" package="chromium-efl" version="50.2661.0.14"
+<manifest xmlns="http://tizen.org/ns/packages" package="chromium-efl" version="51.2704.0.17"
     <label> micro browser application for chromium-efl package </label>
     <author href="www.samsung.com" email="m.lapinski@samsung.com">SWC</author>
     <description> micro browser application based on chromium-efl </description>
index 03107e6..8961a68 100644 (file)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
-<manifest xmlns="http://tizen.org/ns/packages" api-version="3.0" package="org.tizen.chromium-efl" version="50.2661.0.14">
+<manifest xmlns="http://tizen.org/ns/packages" api-version="3.0" package="org.tizen.chromium-efl" version="51.2704.0.17">
     <label> micro browser application for chromium-efl package </label>
     <author href="www.samsung.com" email="m.lapinski@samsung.com">SWC</author>
     <description> micro browser application based on chromium-efl </description>
index 9a14c2c..66435d9 100644 (file)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
-<manifest xmlns="http://tizen.org/ns/packages" package="chromium-efl" version="50.2661.0.14">
+<manifest xmlns="http://tizen.org/ns/packages" package="chromium-efl" version="51.2704.0.17">
     <label>uBrowser application for chromium-efl package</label>
     <author href="www.samsung.com" email="p.tworek@samsung.com">SRPOL</author>
     <description>Small reference browser application for chromium-efl port</description>
index a639d8f..c65cb52 100644 (file)
@@ -5,8 +5,8 @@
 %define _binary_payload w3.gzdio
 
 Name:           chromium-efl-libs
-%define         ChromiumVersion 50.2661.0
-%define         Week 14
+%define         ChromiumVersion 51.2704.0
+%define         Week 17
 Version:        %{ChromiumVersion}.%{Week}
 Release:        1
 Summary:        Chromium-based app runtime, private libraries
index 6ab0143..33f5fe1 100644 (file)
@@ -1,8 +1,8 @@
 Name: chromium-efl
 Summary: Chromium EFL
 # Set by by scripts/update-chromium-version.sh
-%define ChromiumVersion 50.2661.0
-%define Week 14
+%define ChromiumVersion 51.2704.0
+%define Week 17
 Version: %{ChromiumVersion}.%{Week}
 Release: 1
 # The 'Group' should be specified as one of the following valid group list.
index d8e1add..ae5f73b 100644 (file)
@@ -5,7 +5,7 @@
 %define _binary_payload w3.gzdio
 
 Name:           crosswalk-bin
-Version:        15.50.2661.0
+Version:        15.51.2704.0
 Release:        0
 Summary:        Chromium-based app runtime
 License:        (BSD-3-Clause and LGPL-2.1+)
index 8c98009..b831293 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
 <Manifest xmlns="http://schemas.tizen.org/2012/12/manifest">
     <Id>kmcele1k1p</Id>
-    <Version>50.2661.0.14</Version>
+    <Version>51.2704.0.17</Version>
     <Type>C++App</Type>
     <Descriptions>
         <Description Locale="eng-PH"/>