Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ |
| 6 #define CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 86 } | 86 } |
| 87 | 87 |
| 88 const GURL& current_url() const { | 88 const GURL& current_url() const { |
| 89 return current_url_; | 89 return current_url_; |
| 90 } | 90 } |
| 91 | 91 |
| 92 void set_current_url(const GURL& url) { | 92 void set_current_url(const GURL& url) { |
| 93 current_url_ = url; | 93 current_url_ = url; |
| 94 } | 94 } |
| 95 | 95 |
| 96 void set_current_origin(const url::Origin& origin) { | 96 // Set the current origin and notify proxies about the update. |
| 97 replication_state_.origin = origin; | 97 void SetCurrentOrigin(const url::Origin& origin); |
| 98 } | |
| 99 | 98 |
| 100 void SetFrameName(const std::string& name); | 99 void SetFrameName(const std::string& name); |
|
Charlie Reis
2015/04/21 19:10:30
Can you put a similar comment here, since it also
alexmos
2015/04/22 23:15:29
Done.
| |
| 101 | 100 |
| 102 SandboxFlags effective_sandbox_flags() { return effective_sandbox_flags_; } | 101 SandboxFlags effective_sandbox_flags() { return effective_sandbox_flags_; } |
| 103 | 102 |
| 104 void set_sandbox_flags(SandboxFlags sandbox_flags) { | 103 void set_sandbox_flags(SandboxFlags sandbox_flags) { |
| 105 replication_state_.sandbox_flags = sandbox_flags; | 104 replication_state_.sandbox_flags = sandbox_flags; |
| 106 } | 105 } |
| 107 | 106 |
| 108 // Transfer any pending sandbox flags into |effective_sandbox_flags_|, and | 107 // Transfer any pending sandbox flags into |effective_sandbox_flags_|, and |
| 109 // return true if the sandbox flags were changed. | 108 // return true if the sandbox flags were changed. |
| 110 bool CommitPendingSandboxFlags(); | 109 bool CommitPendingSandboxFlags(); |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 220 // Owns an ongoing NavigationRequest until it is ready to commit. It will then | 219 // Owns an ongoing NavigationRequest until it is ready to commit. It will then |
| 221 // be reset and a RenderFrameHost will be responsible for the navigation. | 220 // be reset and a RenderFrameHost will be responsible for the navigation. |
| 222 scoped_ptr<NavigationRequest> navigation_request_; | 221 scoped_ptr<NavigationRequest> navigation_request_; |
| 223 | 222 |
| 224 DISALLOW_COPY_AND_ASSIGN(FrameTreeNode); | 223 DISALLOW_COPY_AND_ASSIGN(FrameTreeNode); |
| 225 }; | 224 }; |
| 226 | 225 |
| 227 } // namespace content | 226 } // namespace content |
| 228 | 227 |
| 229 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ | 228 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ |
| OLD | NEW |