| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> | 3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> |
| 4 * Copyright (C) 2011 Google Inc. All rights reserved. | 4 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * | 9 * |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 #include "weborigin/SecurityOrigin.h" | 49 #include "weborigin/SecurityOrigin.h" |
| 50 | 50 |
| 51 using namespace std; | 51 using namespace std; |
| 52 | 52 |
| 53 namespace WebCore { | 53 namespace WebCore { |
| 54 | 54 |
| 55 namespace InspectorAgentState { | 55 namespace InspectorAgentState { |
| 56 static const char inspectorAgentEnabled[] = "inspectorAgentEnabled"; | 56 static const char inspectorAgentEnabled[] = "inspectorAgentEnabled"; |
| 57 } | 57 } |
| 58 | 58 |
| 59 InspectorAgent::InspectorAgent(Page* page, InjectedScriptManager* injectedScript
Manager, InstrumentingAgents* instrumentingAgents, InspectorCompositeState* stat
e) | 59 InspectorAgent::InspectorAgent(Page* page, InjectedScriptManager* injectedScript
Manager, InstrumentingAgents* instrumentingAgents, InspectorState* state) |
| 60 : InspectorBaseAgent<InspectorAgent>("Inspector", instrumentingAgents, state
) | 60 : InspectorBaseAgent(instrumentingAgents, state) |
| 61 , m_inspectedPage(page) | 61 , m_inspectedPage(page) |
| 62 , m_frontend(0) | 62 , m_frontend(0) |
| 63 , m_injectedScriptManager(injectedScriptManager) | 63 , m_injectedScriptManager(injectedScriptManager) |
| 64 { | 64 { |
| 65 ASSERT_ARG(page, page); | 65 ASSERT_ARG(page, page); |
| 66 m_instrumentingAgents->setInspectorAgent(this); | 66 m_instrumentingAgents->setInspectorAgent(this); |
| 67 } | 67 } |
| 68 | 68 |
| 69 InspectorAgent::~InspectorAgent() | 69 InspectorAgent::~InspectorAgent() |
| 70 { | 70 { |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 | 181 |
| 182 KURL InspectorAgent::inspectedURLWithoutFragment() const | 182 KURL InspectorAgent::inspectedURLWithoutFragment() const |
| 183 { | 183 { |
| 184 KURL url = inspectedURL(); | 184 KURL url = inspectedURL(); |
| 185 url.removeFragmentIdentifier(); | 185 url.removeFragmentIdentifier(); |
| 186 return url; | 186 return url; |
| 187 } | 187 } |
| 188 | 188 |
| 189 } // namespace WebCore | 189 } // namespace WebCore |
| 190 | 190 |
| OLD | NEW |