OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "content/public/test/web_contents_observer_sanity_checker.h" | 5 #include "content/test/web_contents_observer_sanity_checker.h" |
6 | 6 |
7 #include "base/strings/stringprintf.h" | 7 #include "base/strings/stringprintf.h" |
8 #include "content/common/frame_messages.h" | 8 #include "content/common/frame_messages.h" |
9 #include "content/public/browser/render_frame_host.h" | 9 #include "content/public/browser/render_frame_host.h" |
10 #include "content/public/browser/render_process_host.h" | 10 #include "content/public/browser/render_process_host.h" |
11 #include "content/public/browser/site_instance.h" | 11 #include "content/public/browser/site_instance.h" |
12 #include "content/public/browser/web_contents.h" | 12 #include "content/public/browser/web_contents.h" |
13 #include "content/public/browser/web_contents_observer.h" | 13 #include "content/public/browser/web_contents_observer.h" |
14 | 14 |
15 namespace content { | 15 namespace content { |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 | 248 |
249 std::string WebContentsObserverSanityChecker::Format( | 249 std::string WebContentsObserverSanityChecker::Format( |
250 RenderFrameHost* render_frame_host) { | 250 RenderFrameHost* render_frame_host) { |
251 return base::StringPrintf( | 251 return base::StringPrintf( |
252 "(%d, %d -> %s)", render_frame_host->GetProcess()->GetID(), | 252 "(%d, %d -> %s)", render_frame_host->GetProcess()->GetID(), |
253 render_frame_host->GetRoutingID(), | 253 render_frame_host->GetRoutingID(), |
254 render_frame_host->GetSiteInstance()->GetSiteURL().spec().c_str()); | 254 render_frame_host->GetSiteInstance()->GetSiteURL().spec().c_str()); |
255 } | 255 } |
256 | 256 |
257 } // namespace content | 257 } // namespace content |
OLD | NEW |