OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 namespace blink { | 74 namespace blink { |
75 | 75 |
76 using protocol::Response; | 76 using protocol::Response; |
77 | 77 |
78 namespace PageAgentState { | 78 namespace PageAgentState { |
79 static const char kPageAgentEnabled[] = "pageAgentEnabled"; | 79 static const char kPageAgentEnabled[] = "pageAgentEnabled"; |
80 static const char kPageAgentScriptsToEvaluateOnLoad[] = | 80 static const char kPageAgentScriptsToEvaluateOnLoad[] = |
81 "pageAgentScriptsToEvaluateOnLoad"; | 81 "pageAgentScriptsToEvaluateOnLoad"; |
82 static const char kScreencastEnabled[] = "screencastEnabled"; | 82 static const char kScreencastEnabled[] = "screencastEnabled"; |
83 static const char kAutoAttachToCreatedPages[] = "autoAttachToCreatedPages"; | 83 static const char kAutoAttachToCreatedPages[] = "autoAttachToCreatedPages"; |
84 } | 84 } // namespace PageAgentState |
85 | 85 |
86 namespace { | 86 namespace { |
87 | 87 |
88 KURL UrlWithoutFragment(const KURL& url) { | 88 KURL UrlWithoutFragment(const KURL& url) { |
89 KURL result = url; | 89 KURL result = url; |
90 result.RemoveFragmentIdentifier(); | 90 result.RemoveFragmentIdentifier(); |
91 return result; | 91 return result; |
92 } | 92 } |
93 | 93 |
94 String FrameId(LocalFrame* frame) { | 94 String FrameId(LocalFrame* frame) { |
(...skipping 839 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
934 return Response::OK(); | 934 return Response::OK(); |
935 } | 935 } |
936 | 936 |
937 DEFINE_TRACE(InspectorPageAgent) { | 937 DEFINE_TRACE(InspectorPageAgent) { |
938 visitor->Trace(inspected_frames_); | 938 visitor->Trace(inspected_frames_); |
939 visitor->Trace(inspector_resource_content_loader_); | 939 visitor->Trace(inspector_resource_content_loader_); |
940 InspectorBaseAgent::Trace(visitor); | 940 InspectorBaseAgent::Trace(visitor); |
941 } | 941 } |
942 | 942 |
943 } // namespace blink | 943 } // namespace blink |
OLD | NEW |