forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert 140093 - Open pepper files directly in browser.
This CL merges in the changes for the per-profile plugin process from the previously retired CL. Review URL: https://chromiumcodereview.appspot.com/10387195 TBR=tsepez@chromium.org Review URL: https://chromiumcodereview.appspot.com/10477006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140094 0039d316-1c4b-4281-b951-d872f2087c98
- Loading branch information
tsepez@chromium.org
committed
Jun 1, 2012
1 parent
7e1dc3d
commit 042ba85
Showing
27 changed files
with
431 additions
and
385 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// Copyright (c) 2012 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#include "content/common/pepper_file_messages.h" | ||
|
||
namespace IPC { | ||
|
||
void ParamTraits<webkit::ppapi::PepperFilePath>::Write(Message* m, | ||
const param_type& p) { | ||
WriteParam(m, static_cast<unsigned>(p.domain())); | ||
WriteParam(m, p.path()); | ||
} | ||
|
||
bool ParamTraits<webkit::ppapi::PepperFilePath>::Read(const Message* m, | ||
PickleIterator* iter, | ||
param_type* p) { | ||
unsigned domain; | ||
FilePath path; | ||
if (!ReadParam(m, iter, &domain) || !ReadParam(m, iter, &path)) | ||
return false; | ||
if (domain > webkit::ppapi::PepperFilePath::DOMAIN_MAX_VALID) | ||
return false; | ||
|
||
*p = webkit::ppapi::PepperFilePath( | ||
static_cast<webkit::ppapi::PepperFilePath::Domain>(domain), path); | ||
return true; | ||
} | ||
|
||
void ParamTraits<webkit::ppapi::PepperFilePath>::Log(const param_type& p, | ||
std::string* l) { | ||
l->append("("); | ||
LogParam(static_cast<unsigned>(p.domain()), l); | ||
l->append(", "); | ||
LogParam(p.path(), l); | ||
l->append(")"); | ||
} | ||
|
||
} // namespace IPC |
Oops, something went wrong.