Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1186)

Side by Side Diff: Source/web/InspectorClientImpl.cpp

Issue 251183005: [4/4] Process clearBrowserCahce/cookies commands in browser. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/web/InspectorClientImpl.h ('k') | Source/web/WebDevToolsAgentImpl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 if (WebDevToolsAgentImpl* agent = devToolsAgent()) 83 if (WebDevToolsAgentImpl* agent = devToolsAgent())
84 agent->flush(); 84 agent->flush();
85 } 85 }
86 86
87 void InspectorClientImpl::updateInspectorStateCookie(const WTF::String& inspecto rState) 87 void InspectorClientImpl::updateInspectorStateCookie(const WTF::String& inspecto rState)
88 { 88 {
89 if (WebDevToolsAgentImpl* agent = devToolsAgent()) 89 if (WebDevToolsAgentImpl* agent = devToolsAgent())
90 agent->updateInspectorStateCookie(inspectorState); 90 agent->updateInspectorStateCookie(inspectorState);
91 } 91 }
92 92
93 void InspectorClientImpl::clearBrowserCache()
94 {
95 if (WebDevToolsAgentImpl* agent = devToolsAgent())
96 agent->clearBrowserCache();
97 }
98
99 void InspectorClientImpl::clearBrowserCookies()
100 {
101 if (WebDevToolsAgentImpl* agent = devToolsAgent())
102 agent->clearBrowserCookies();
103 }
104
105 void InspectorClientImpl::overrideDeviceMetrics(int width, int height, float dev iceScaleFactor, bool emulateViewport, bool fitWindow) 93 void InspectorClientImpl::overrideDeviceMetrics(int width, int height, float dev iceScaleFactor, bool emulateViewport, bool fitWindow)
106 { 94 {
107 if (WebDevToolsAgentImpl* agent = devToolsAgent()) 95 if (WebDevToolsAgentImpl* agent = devToolsAgent())
108 agent->overrideDeviceMetrics(width, height, deviceScaleFactor, emulateVi ewport, fitWindow); 96 agent->overrideDeviceMetrics(width, height, deviceScaleFactor, emulateVi ewport, fitWindow);
109 } 97 }
110 98
111 void InspectorClientImpl::setTouchEventEmulationEnabled(bool enabled) 99 void InspectorClientImpl::setTouchEventEmulationEnabled(bool enabled)
112 { 100 {
113 if (WebDevToolsAgentImpl* agent = devToolsAgent()) 101 if (WebDevToolsAgentImpl* agent = devToolsAgent())
114 agent->setTouchEventEmulationEnabled(enabled); 102 agent->setTouchEventEmulationEnabled(enabled);
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 if (WebDevToolsAgentImpl* agent = devToolsAgent()) 185 if (WebDevToolsAgentImpl* agent = devToolsAgent())
198 agent->stopGPUEventsRecording(); 186 agent->stopGPUEventsRecording();
199 } 187 }
200 188
201 WebDevToolsAgentImpl* InspectorClientImpl::devToolsAgent() 189 WebDevToolsAgentImpl* InspectorClientImpl::devToolsAgent()
202 { 190 {
203 return static_cast<WebDevToolsAgentImpl*>(m_inspectedWebView->devToolsAgent( )); 191 return static_cast<WebDevToolsAgentImpl*>(m_inspectedWebView->devToolsAgent( ));
204 } 192 }
205 193
206 } // namespace blink 194 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/InspectorClientImpl.h ('k') | Source/web/WebDevToolsAgentImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698