| Index: pdf/out_of_process_instance.cc
|
| diff --git a/pdf/out_of_process_instance.cc b/pdf/out_of_process_instance.cc
|
| index 92511185c9715dd610adc6353cae440616666284..893eb3af297e350b57e293e53a77084e12fed1f8 100644
|
| --- a/pdf/out_of_process_instance.cc
|
| +++ b/pdf/out_of_process_instance.cc
|
| @@ -70,6 +70,9 @@ const char kJSPageHeight[] = "height";
|
| // Document load progress arguments (Plugin -> Page)
|
| const char kJSLoadProgressType[] = "loadProgress";
|
| const char kJSProgressPercentage[] = "progress";
|
| +// Document load URL (Plugin -> Page)
|
| +const char kJSGotActualURLType[] = "gotActualURL";
|
| +const char kJSActualURL[] = "actualURL";
|
| // Metadata
|
| const char kJSMetadataType[] = "metadata";
|
| const char kJSBookmarks[] = "bookmarks";
|
| @@ -1197,6 +1200,13 @@ void OutOfProcessInstance::SearchString(const base::char16* string,
|
| void OutOfProcessInstance::DocumentPaintOccurred() {
|
| }
|
|
|
| +void OutOfProcessInstance::OnGotActualURL(const std::string& url) {
|
| + pp::VarDictionary message;
|
| + message.Set(pp::Var(kType), pp::Var(kJSGotActualURLType));
|
| + message.Set(pp::Var(kJSActualURL), pp::Var(url));
|
| + PostMessage(message);
|
| +}
|
| +
|
| void OutOfProcessInstance::DocumentLoadComplete(int page_count) {
|
| // Clear focus state for OSK.
|
| FormTextFieldFocusChange(false);
|
|
|