| OLD | NEW | 
|    1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |    1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 
|    2 // Use of this source code is governed by a BSD-style license that can be |    2 // Use of this source code is governed by a BSD-style license that can be | 
|    3 // found in the LICENSE file. |    3 // found in the LICENSE file. | 
|    4  |    4  | 
|    5 #ifndef CONTENT_RENDERER_CONTENT_RENDERER_CLIENT_H_ |    5 #ifndef CONTENT_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 
|    6 #define CONTENT_RENDERER_CONTENT_RENDERER_CLIENT_H_ |    6 #define CONTENT_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 
|    7 #pragma once |    7 #pragma once | 
|    8  |    8  | 
|    9 #include <string> |    9 #include <string> | 
|   10  |   10  | 
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   68   // all widgets are hidden. |   68   // all widgets are hidden. | 
|   69   virtual bool RunIdleHandlerWhenWidgetsHidden() = 0; |   69   virtual bool RunIdleHandlerWhenWidgetsHidden() = 0; | 
|   70  |   70  | 
|   71   // Returns true if the given url can create popup windows. |   71   // Returns true if the given url can create popup windows. | 
|   72   virtual bool AllowPopup(const GURL& creator) = 0; |   72   virtual bool AllowPopup(const GURL& creator) = 0; | 
|   73  |   73  | 
|   74   // Returns true if we should fork a new process for the given navigation. |   74   // Returns true if we should fork a new process for the given navigation. | 
|   75   virtual bool ShouldFork(WebKit::WebFrame* frame, |   75   virtual bool ShouldFork(WebKit::WebFrame* frame, | 
|   76                           const GURL& url, |   76                           const GURL& url, | 
|   77                           bool is_content_initiated, |   77                           bool is_content_initiated, | 
 |   78                           bool is_initial_navigation, | 
|   78                           bool* send_referrer) = 0; |   79                           bool* send_referrer) = 0; | 
|   79  |   80  | 
|   80   // Notifies the embedder that the given frame is requesting the resource at |   81   // Notifies the embedder that the given frame is requesting the resource at | 
|   81   // |url|.  If the function returns true, the url is changed to |new_url|. |   82   // |url|.  If the function returns true, the url is changed to |new_url|. | 
|   82   virtual bool WillSendRequest(WebKit::WebFrame* frame, |   83   virtual bool WillSendRequest(WebKit::WebFrame* frame, | 
|   83                                const GURL& url, |   84                                const GURL& url, | 
|   84                                GURL* new_url) = 0; |   85                                GURL* new_url) = 0; | 
|   85  |   86  | 
|   86   // Whether to pump events when sending sync cookie messages.  Needed if the |   87   // Whether to pump events when sending sync cookie messages.  Needed if the | 
|   87   // embedder can potentiall put up a modal dialog on the UI thread as a result. |   88   // embedder can potentiall put up a modal dialog on the UI thread as a result. | 
| (...skipping 10 matching lines...) Expand all  Loading... | 
|   98   virtual bool IsLinkVisited(unsigned long long link_hash) = 0; |   99   virtual bool IsLinkVisited(unsigned long long link_hash) = 0; | 
|   99   virtual void PrefetchHostName(const char* hostname, size_t length) = 0; |  100   virtual void PrefetchHostName(const char* hostname, size_t length) = 0; | 
|  100   virtual bool ShouldOverridePageVisibilityState( |  101   virtual bool ShouldOverridePageVisibilityState( | 
|  101       const RenderView* render_view, |  102       const RenderView* render_view, | 
|  102       WebKit::WebPageVisibilityState* override_state) const = 0; |  103       WebKit::WebPageVisibilityState* override_state) const = 0; | 
|  103 }; |  104 }; | 
|  104  |  105  | 
|  105 }  // namespace content |  106 }  // namespace content | 
|  106  |  107  | 
|  107 #endif  // CONTENT_RENDERER_CONTENT_RENDERER_CLIENT_H_ |  108 #endif  // CONTENT_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 
| OLD | NEW |