Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / chrome / renderer / chrome_mock_render_thread.h
index 72a8f2a..ea3a1e9 100644 (file)
@@ -28,11 +28,10 @@ struct PrintMsg_Print_Params;
 class ChromeMockRenderThread : public content::MockRenderThread {
  public:
   ChromeMockRenderThread();
-  virtual ~ChromeMockRenderThread();
+  ~ChromeMockRenderThread() override;
 
   // content::RenderThread overrides.
-  virtual scoped_refptr<base::MessageLoopProxy> GetIOMessageLoopProxy()
-      OVERRIDE;
+  scoped_refptr<base::MessageLoopProxy> GetIOMessageLoopProxy() override;
 
   //////////////////////////////////////////////////////////////////////////
   // The following functions are called by the test itself.
@@ -59,14 +58,16 @@ class ChromeMockRenderThread : public content::MockRenderThread {
  private:
   // Overrides base class implementation to add custom handling for
   // print and extensions.
-  virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
+  bool OnMessageReceived(const IPC::Message& msg) override;
 
+#if defined(ENABLE_EXTENSIONS)
   // The callee expects to be returned a valid channel_id.
   void OnOpenChannelToExtension(int routing_id,
                                 const ExtensionMsg_ExternalConnectionInfo& info,
                                 const std::string& channel_name,
                                 bool include_tls_channel_id,
                                 int* port_id);
+#endif
 
 #if defined(ENABLE_PRINTING)
 #if defined(OS_CHROMEOS) || defined(OS_ANDROID)