|
Lines 60-70
Ref<WebInspector> WebInspector::create(WebPage* page)
a/Source/WebKit2/WebProcess/WebPage/WebInspector.cpp_sec1
|
| 60 |
|
60 |
|
| 61 |
WebInspector::WebInspector(WebPage* page) |
61 |
WebInspector::WebInspector(WebPage* page) |
| 62 |
: m_page(page) |
62 |
: m_page(page) |
| 63 |
, m_attached(false) |
|
|
| 64 |
, m_previousCanAttach(false) |
| 65 |
#if ENABLE(INSPECTOR_SERVER) |
| 66 |
, m_remoteFrontendConnected(false) |
| 67 |
#endif |
| 68 |
{ |
63 |
{ |
| 69 |
} |
64 |
} |
| 70 |
|
65 |
|
|
Lines 102-109
void WebInspector::closeFrontend()
a/Source/WebKit2/WebProcess/WebPage/WebInspector.cpp_sec2
|
| 102 |
{ |
97 |
{ |
| 103 |
WebProcess::singleton().parentProcessConnection()->send(Messages::WebInspectorProxy::DidClose(), m_page->pageID()); |
98 |
WebProcess::singleton().parentProcessConnection()->send(Messages::WebInspectorProxy::DidClose(), m_page->pageID()); |
| 104 |
|
99 |
|
| 105 |
m_frontendConnection->invalidate(); |
100 |
// If we tried to close the frontend before it was created, then no connection exists yet. |
| 106 |
m_frontendConnection = nullptr; |
101 |
if (m_frontendConnection) { |
|
|
102 |
m_frontendConnection->invalidate(); |
| 103 |
m_frontendConnection = nullptr; |
| 104 |
} |
| 107 |
|
105 |
|
| 108 |
m_attached = false; |
106 |
m_attached = false; |
| 109 |
m_previousCanAttach = false; |
107 |
m_previousCanAttach = false; |