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

Side by Side Diff: chrome_frame/chrome_frame_npapi.cc

Issue 4194007: Revert "Refactor automation messages." due to mysterious problems on mac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « chrome_frame/chrome_frame_npapi.h ('k') | chrome_frame/chrome_frame_plugin.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 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "chrome_frame/chrome_frame_npapi.h" 5 #include "chrome_frame/chrome_frame_npapi.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/string_split.h" 10 #include "base/string_split.h"
(...skipping 1458 matching lines...) Expand 10 before | Expand all | Expand 10 after
1469 // TODO: Remove this overridden method once HandleContextMenuCommand 1469 // TODO: Remove this overridden method once HandleContextMenuCommand
1470 // implements "About Chrome Frame" handling. 1470 // implements "About Chrome Frame" handling.
1471 if (!is_privileged_) { 1471 if (!is_privileged_) {
1472 // Call base class (adds 'About' item). 1472 // Call base class (adds 'About' item).
1473 return ChromeFramePlugin::PreProcessContextMenu(menu); 1473 return ChromeFramePlugin::PreProcessContextMenu(menu);
1474 } 1474 }
1475 return true; 1475 return true;
1476 } 1476 }
1477 1477
1478 bool ChromeFrameNPAPI::HandleContextMenuCommand(UINT cmd, 1478 bool ChromeFrameNPAPI::HandleContextMenuCommand(UINT cmd,
1479 const IPC::MiniContextMenuParams& params) { 1479 const IPC::ContextMenuParams& params) {
1480 if (cmd == IDC_ABOUT_CHROME_FRAME) { 1480 if (cmd == IDC_ABOUT_CHROME_FRAME) {
1481 // TODO: implement "About Chrome Frame" 1481 // TODO: implement "About Chrome Frame"
1482 } 1482 }
1483 return false; 1483 return false;
1484 } 1484 }
1485 1485
1486 NPError ChromeFrameNPAPI::NewStream(NPMIMEType type, NPStream* stream, 1486 NPError ChromeFrameNPAPI::NewStream(NPMIMEType type, NPStream* stream,
1487 NPBool seekable, uint16* stream_type) { 1487 NPBool seekable, uint16* stream_type) {
1488 return url_fetcher_.NewStream(type, stream, seekable, stream_type); 1488 return url_fetcher_.NewStream(type, stream, seekable, stream_type);
1489 } 1489 }
1490 1490
1491 int32 ChromeFrameNPAPI::WriteReady(NPStream* stream) { 1491 int32 ChromeFrameNPAPI::WriteReady(NPStream* stream) {
1492 return url_fetcher_.WriteReady(stream); 1492 return url_fetcher_.WriteReady(stream);
1493 } 1493 }
1494 1494
1495 int32 ChromeFrameNPAPI::Write(NPStream* stream, int32 offset, int32 len, 1495 int32 ChromeFrameNPAPI::Write(NPStream* stream, int32 offset, int32 len,
1496 void* buffer) { 1496 void* buffer) {
1497 return url_fetcher_.Write(stream, offset, len, buffer); 1497 return url_fetcher_.Write(stream, offset, len, buffer);
1498 } 1498 }
1499 1499
1500 NPError ChromeFrameNPAPI::DestroyStream(NPStream* stream, NPReason reason) { 1500 NPError ChromeFrameNPAPI::DestroyStream(NPStream* stream, NPReason reason) {
1501 return url_fetcher_.DestroyStream(stream, reason); 1501 return url_fetcher_.DestroyStream(stream, reason);
1502 } 1502 }
OLDNEW
« no previous file with comments | « chrome_frame/chrome_frame_npapi.h ('k') | chrome_frame/chrome_frame_plugin.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698